Olete.in
Articles
Mock Tests
🧪 Git MCQ Quiz Hub
Git Mcq Question
Choose a topic to test your knowledge and improve your Git skills
1. What is the full form of GIT?
Gastro Intestional Track.
Gastro International Track.
Global information Tracker
None of these
2. Which of the following git command that downloads your repository from GitHub to your computer?
git fork
git commit
git clone
git push
3. Which of the following shortcut to staging all the changes you have?
git push -am "Message"
git add.
git commit add.
git commit.
4. Identify the correct commit syntax for all changes with a message?
git add -a "I'm coding"
git commit -am "I'm coding"
git message -am "I'm coding"
None of these
5. What comes first, staging with git add. or committing with git commit?
Committing with git commit
Staging your commits with git add
all of the above
None of the mentioned
6. How do you create a copy of a lab under your own GitHub account so that you can solve the lab?
Forking it via the GitHub interface.
git clone
git pull-request
git fork
7. GIT comes from
2005
2007
2004
2008
8. Which of the following advantage of using GIT?
Collaboration friendly
Data redundancy and replication
Data redundancy and replication
All of the Mentioned
9. Which of the language is used in GIT?
C language
HTML language
C++ language
None of these
10. What is the function of ‘GIT PUSH’ in GIT?
‘GIT PUSH’ updates remote refs.
‘GIT PUSH’ updates remote refs along with associated objects.
'GIT PUSH’ remote refs along with associated objects.
None of these
11. What is an alternative to merging in git?
Basing
Rebasing
Both 1 and 2
None of these
12. Which of the following graphical GIT client for LINUX?
Smart git
Git Cola
Git-g
All of the above
13. What is the use of ‘git log’?
by author
date
content
All of the above
14. Which of the following Git repository hosting functions?
Gitlab
Github
Bitbucket
All of the above
15. What do you by git is-tree?
‘git is-tree’ represents a tree object including the mode and the name of each item and the SHA-1 value of the blob or the tree.
‘git is-tree’ represents a tree object including the mode and the name of each item
all of the above
None of the mentioned
16. Which of the following isn't a Git configuration scope?
User
System
Local
Global
17. Which of the following vendor acquired GitHub for $7.5 billion in June 2018?
IBM
Microsoft
Google
Oracle
18. Which command should you use to initialize a new Git repository?
git init
git install
git start
git bash
19. What is the default text editor for the Bash shell with a Windows-based Git install?
Bash
Emacs
Notepad++
Vim
20. Which of the following file you can configure to ensure that certain file types are never committed to the local Git repository?
.gitignore
gitignore.txt
git.ignore
ignore.git
21. Which of the following is not true in terms of git
Staging area
Fork
Stem
Push
22. How do you save the current state of your code into the git version control?
Using git stage
Using git commit
Using git push
Using git add
23. Which of the following is not a git command?
git clean
git clone
git commit
Git roll
24. Which of these git client commands creates a copy of the repository?
clone
update
import
checkout
25. command to download all the objects and references from a specific repository
git log -n
git fetch
git help
git config --list
26. Which one of the following is not part of the data structure of a git repository?
Head pointer
Body element
Branch pointer
Commit object
27. Command is useful for getting a high-level overview of the project history
git rebase
git reset --hard
git log --author=""
git log --oneline
28. Which command is used to show limited number of commits?
git fetch
git config
git log -n
None of the above
29. Command line environment is used for interacting with git
Git Lab
GitHub
Git Boot
Git Bash
30. Which command creates an empty git repository in the specified directory?
git init
git log .
git reset
None of the above
31. What is true about GIT?
Git is open-source
Git is an example of distributed version control system
Used for handling the development of small and large projects
All of the above
32. A _________ keeps track of the contributions of the developers working as a team on the projects.
CVS
DVF
VCS
LFS
33. A repository is a file structure where git stores all the project-based files.
TRUE
FALSE
Can be true or false
Can not say
34. Which command creates a copy of an existing git repository.
git copy
git clone
git replace
git move
35. The _________ command is a convenient way to set configuration options for defining the behavior of the repository, user information and preferences, git installation-based configurations, and many such things
git head
git conflict
git status
git config
36. git fetch + git merge equal to?
git push
git branch
git pull
None of the above
37. Which of the following is true about Centralized version control system?
It does not rely on the central server
It is victim to single point of failure
It rely on the central server
Both B and C
38. The files that can be committed are always present in git
working directory
staging area
unstaged area
Anywhere, there is no barrier
39. Git can be used for which project?
Java enterprise project
.Net project
File version management
All of the above
40. A head is nothing but a reference to the last commit object of a branch.
Yes
No
Can be yes or no
Can not say
Submit