0% found this document useful (0 votes)
53 views9 pages

Git & GitHub Quiz for Developers

The document is a quiz on version control using Git and GitHub, featuring multiple-choice questions with references to specific pages for answers. It covers various topics such as Git commands, branching, repository management, and the underlying principles of version control systems. Each question includes the correct answer and page number for further reading.

Uploaded by

sumiayaaiman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views9 pages

Git & GitHub Quiz for Developers

The document is a quiz on version control using Git and GitHub, featuring multiple-choice questions with references to specific pages for answers. It covers various topics such as Git commands, branching, repository management, and the underlying principles of version control systems. Each question includes the correct answer and page number for further reading.

Uploaded by

sumiayaaiman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

PRIME 2.

0 Sem2 Distributed Version Control with GIT & GITHUB


Book name: VERSION CONTROL WITH GIT & GITHUB

Q.1 Which of the following is not a version control system?


A. Git B. Google
C. SVN D. Mercurial
Correct Answer:
Reference: Page no. 9

Q.2 Which cryptographic algorithm is used by Git for security?


A. RSA B. DES
C. SHA1 D. AES
Correct Answer:
Reference: Page no. 12

Q.3 Which is data about data called?


A. Organic data B. Metadata
C. Inorganic data D. Crucial data
Correct Answer:
Reference: Page no. 28

Q.4 Which of the following comes with higher ease of access and simplicity?
A. GUI B. CLI
C. Both are equivalent D. GPI
Correct Answer:
Reference: Direct reference not available

Q.5 Which of the following is a stage that a Git file goes through?
A. Untracked B. Tracked
C. Staged D. All of these
Correct Answer:
Reference: Page no. 13

Q.6 A Git client command creates a copy of the repository in a working


directory in the client’s workspace. Identify that command.
A. Update B. Checkout
C. Clone D. Import
Correct Answer:
Reference: Page no 29

Q.7 in case you are a new developer who happened to join a team of
developers using Git for version control, which Git operation out of these would
you invoke first of all?
A. Checkout B. Clone
C. Export D. Revert
Correct Answer:
Reference: Page no. 29

Page PAGE 2 of NUMPAGES 3


PRIME 2.0 Sem2 Distributed Version Control with GIT & GITHUB
Q.8 Which option can be used by a user to set the username & email
immediately after installing Git?
A. –config’ B. Git add
C. Both A and B D. None of these
Correct Answer:
Reference: Page no. 28

Q.9 What is the process of creating a new branch called?


A. Adding B. Branching
C. Merging D. Receiving
Correct Answer:
Reference: Page no. 38

Q.10 Which version control system has been used to built the ‘GitHub’ Website?
A. Git B. SVN
C. Mercurial D. None of these
Correct Answer:
Reference: Page no. 63

Q.11 What does Git use to maintain integrity?


A. Commit B. Checksum
C. Branching D. Merging
Correct Answer:
Reference: Page no. 12

Q.12 Which command is use to execute staging?


A. git config B. git init
C. git add D. git clone
Correct Answer:
Reference: Page no. 30

Q.13 What happens to a merging branch after a successful merge?


A. It gets deleted B. It gets copied
C. It stays there as it is D. None of these
Correct Answer:
Reference: Page no. 42

Q.14 What serves a pre-requisite for collaboration?


A. Updation B. Merging
C. Physical link establishment D. Synchronization
Correct Answer:
Reference: Direct reference not available

Page PAGE 2 of NUMPAGES 3


PRIME 2.0 Sem2 Distributed Version Control with GIT & GITHUB
Q.15 Which programming language has been used to write Git?
A. Java B. C
C. Python D. Fortan
Correct Answer:
Reference: Page no 14

Q.16 The Execution of the “git init” command result in the creation of which
directory?
A. Sub directory B. Object directory
C. .git D. All of these
Correct Answer:
Reference: Page no. 27

Q.17 How many levels of Git configuration are there?


A. One B. Two
C. Three D. Four
Correct Answer:
Reference: Page no. 28

Q.1. A user's work in Git iterates over three states. Which of the following is one of them?

A. Committed B. Modified

C. Stages D. All of these

Correct Answer:
Reference: PAGE NO. 12

Q.2. _________________ refers to the process of obtaining a copy of an existing Git repository.

A. Committing B. Editing

C. Deleting D. Cloning

Correct Answer:
Reference: HEADING GIT REPOSITORIES PAGE NO. 13

Q.3. Identify types of GitHub Pages sites.

A. Project B. User

C. Organization D. Freelancer

Correct Answer:
Reference: PAGE NO. 91

Page PAGE 2 of NUMPAGES 3


PRIME 2.0 Sem2 Distributed Version Control with GIT & GITHUB
Q.4. Which of the following is a function of a version control system?

A. Allows developers to collaborate over a B. Does not allow overwriting each other's
project changes

C. Maintains a history of every version D. All of these

Correct Answer:
Reference: PAGE NO. 10

Q.5. Which of these statements regarding Cloning are correct?

a) Cloning is a process that allows the user to add or remove files and fix any existing merge issues.

b) Cloning can help to push larger commits.

c) Cloning involves copying the repository from GitHub.com to the local machine. This can be done via
the command line or GitHub.com GUI.

A. a and b B. b

C. a and c D. All of these

Correct Answer:
Reference: PAGE NO. 14

Q.6. Which of these statements regarding GitHub Pages is incorrect?

a) GitHub Pages is a really useful resource provided and hosted by GitClub.

b) GitHub Pages is a static site hosting service that takes HTML, CSS, and JavaScript files straight from
a repository on GitHub, optionally runs the files through a build process, and publishes a Website.

c) GitHub Pages sites can be hosted on GitHub's github.io domain or your own custom domain.

A. a and c B. a

C. b and c D. All are correct

Correct Answer:
Reference: PAGE NO. 96

Q.7. What enables multiple collaborators on a project to work together in mutually beneficial co-
operation?

A. Web browsers B. Version Control Systems

C. Websites D. Collaborative systems

Page PAGE 2 of NUMPAGES 3


PRIME 2.0 Sem2 Distributed Version Control with GIT & GITHUB

Correct Answer:

Q.8. What is the Git equivalent of a locally created folder on a user's computer?

A. Repository B. Folder

C. File D. Sub folder

Correct Answer:
Reference: PAGE NO. 29

Q.9. Which of the following is at the heart of Git's version control process?

A. Branching B. A series of snapshots

C. Locality D. All of these

Correct Answer:

Q.16. While merging two branches in Git, the branch to which the merge is happening is called
_______ branch.

A. Receiving B. Updated

C. Merging D. New

Correct Answer:

Q.17. How many sub mechanisms are there in the synchronization mechanism of Git?

A. One B. Two

C. Five 0 D. Four

Correct Answer:
Reference: PAGE NO. 51

Q.18. __________________ maintains particulars of changes made to a file or set of files over a
period of time.

A. Websites B. Internet protocol

C. Search engine D. Version Control Systems

Page PAGE 2 of NUMPAGES 3


PRIME 2.0 Sem2 Distributed Version Control with GIT & GITHUB

Correct Answer:
Reference: PAGE NO.8

Q.19. With the creation of each new repository, what gets automatically created inside the project
folder?

A. A sub-folder B. A new folder

C. An empty folder D. A copy of the same folder

Correct Answer:
Reference: PAGE NO. 25

Q.20. A Git project works in three main sections of Git. Which of the following is one of them?

A. Git Directory B. Working Area

C. Staging Area D. All of these

Correct Answer:
Reference: PAGE NO. 12

Q.21. A file in Git can go through how many different states?

A. One B. Two

C. Three D. Four

Correct Answer:
Reference: PAGE NO. 13

Q.22. When can a branch be deleted without force?

A. After merging B. After staging

C. After committing D. After adding

Correct Answer:
Reference: PAGE NO. 47

Q.23. ______ is the place where files are checked out.

A. Lower sub folder B. Initial folder

C. Working directory D. Any repository

Correct Answer:

Page PAGE 2 of NUMPAGES 3


PRIME 2.0 Sem2 Distributed Version Control with GIT & GITHUB

Q.24. Apart from being a version control system, Git is a _______ in itself.

A. Website Folder B. Miniature

C. filesystem D. Record System

Correct Answer:

Q.26. What is the process of creating a new branch called?

A. Adding B. Branching

C. Merging D. Receiving

Correct Answer:
Reference: PAGE NO. 11

Q.31. ______________ is a process that creates a copy of the repository from the server into the
user's own account

A. Pulling B. Forking

C. Committing D. Versioning

Correct Answer:
Reference: PAGE NO. 64

Q.32. Identify which one of the following is not a reason for version control.

A. Managing several copies of files B. Allowing easy collaboration

C. Increasing the speed of execution of project


D. Maintaining history
files

Correct Answer:

Q.33. When a certain branch is under development, it signifies a series of ______ operations.

A. Edit B. Commit

C. Delete D. Update

Correct Answer:

Page PAGE 2 of NUMPAGES 3


PRIME 2.0 Sem2 Distributed Version Control with GIT & GITHUB
Q.34. In case a user wants to synchronize two repositories, what must exist between them?

A. Physical link B. Server link

C. Connection D. Virtual link

Correct Answer:
Reference: PAGE NO. 52

Q.35. A _____ operation in a version control system indicates that a particular set of changes must
be recorded and saved.

A. Commit B. Edit

C. Delete D. Update

Correct Answer:

Q.36. Initializing Git in a repository is an operation that must be performed only _____.

A. Twice B. Once

C. Thrice D. Four Times

Correct Answer:
Reference: PAGE NO. 94

Q.37. What is the opposite of branching in Git?

A. Updating B. Committing

C. Deleting D. Merging

Correct Answer:
Reference: PAGE NO. 39

Q.38. Which operation is used to create and maintain connections between repositories in Git?

A. Edit B. Update

C. Remote D. Delete

Correct Answer:
Reference: PAGE NO. 33

Page PAGE 2 of NUMPAGES 3


PRIME 2.0 Sem2 Distributed Version Control with GIT & GITHUB

Page PAGE 2 of NUMPAGES 3

You might also like