Git quiz mcq’s and answers – latest 2022 check now

Git quiz mcq’s and answers – latest 2022 check now it contains 20 Mcq’s answers. Check your knowledge

  1. Git is an open-source version control system used by developers to manage changes to code. It is also known as GitHub.
  2. A git repository is a collection of files stored on a server or other storage device.
  3. Git is a distributed version control system.
  4. Git is not just about managing code. You can use it to manage anything from photos to spreadsheets.
  5. Git is a free software project developed by Linus Torvalds.
  6. Git is one of the most popular versions

Question 1: In Git only a single person can work on a file at one time.

Options : 

a. True

b. False

Answers : False


Question 2: What is the status message for a clean worktree in git?

Options : 

a. Changed but not updated.

b. Nothing to commit.

c. Changes to be committed.

d. None of the options.

Answers : 
b. Nothing to commit.

Question 3: Git branch is used to view?

Options : 

a. List of all changes to a file

b. List of all branches in worktree.

c. The log files.

d. None of the options.

Answers : 
b. List of all branches in worktree.

Question 4: The operation used to send back the changes to the server is called ___

Options : 

a. Commit

b. Check in.

c. Both a and b.

d. None of the options.

Answers : 
d. None of the options.

Question 5: Which of the following types of version control system has  a single  repository for a project?

Options : 

a. Central version control system

b. Distributed version control system.

Answers : 
a. Central version control system

Question 6: The holding area for changes approved for commit is known as __

Options : 

a. Stage

b. Index.

c. Staging area.

d. None of the options.

Answers : 
c. Staging area.

Question 6: The holding area for changes approved for commit is known as __

Options : 

a. Stage

b. Index.

c. Staging area.

d. None of the options.

Answers : 
b. Index and c. Staging area.

Question 7: Which command is used to create a .git folder in the exsiting project directory?

Options : 

a. git add .

b. git init

c. git gui

d. git diff

Answers : 
b. git init

Question 8: Which command is used to add files for tracking in the git repository?

Options : 

a. git status

b. git diff

c. git gui

d. git add .

Answers : 
d. git add .

Question 9: Git take snapshot of the working copy at different intervals of  time.

Options : 

a. True

b. False

Answers : 
a. True

Question 10: What are the different types of protocols for cloning  a repository from a remote server?

Options : 

a. http

b. ssh

c. https

d. All of the options.

Answers : 
d. All of the options.

Question 11: In version control, a database server that contains  all the files and their  history is called ___

Options : 

a. clone

b. Repository

c. copy

d. Branch

Answers : 
b. Repository

Question 12: Which command is used to view the history of the changes in git?

Options : 

a. git status

b. git log

c. git diff

d. git patch

Answers : 
b. git log

Question 13: workflows are possible in distributed version control system.

Options : 

a. True

b. False

Answers : 
a. True

Question 13: What are the types of version control system?

Options : 

a. Local & Remote

b. Centralized & Distributed

c. Single & Multi-user

d. None of the options

Answers : 
b. Centralized & Distributed

Question 14: Which of the following libraries are needed for installing Git?

Options : 

a. Curl

b. zlib

c. openssl

d. All of the options

Answers : 
d. All of the options

Question 15: Which of the following IDEs are supported by Git?

Options : 

a. Eclipse

b. Netbeans

c. None of the options

d. Both a and b

Answers : 
d. Both a and b

Question 16: To bring together the changes made from different sources, which operation is used in version control?

Options : 

a. Merge

b. Push

c. Commit

d. Pull

Answers : 
a. Merge

Question 17: To bring together the changes made from different sources, which operation is used in version control?

Options : 

a. Merge

b. Push

c. Commit

d. Pull

Answers : 
a. Merge

Question 18: Git track contents not files 

Options : 

a. True

b. False

Answers : 
b. False

Question 19: what is the syntax too delete a branch in git?

Options : 

a. git branch -d

b. git branch -d branchname

c. git branch delete

d. None of the options

Answers : 
b. git branch -d branchname

Question 20: FTP and rysnc protocols are supported by git.

Options : 

a. TRUE

b. FALSE

Answers : 
a. TRUE

Leave a Reply