Google News
logo
Git - Quiz(MCQ)
A)
Nils Torvalds
B)
Linus Torvalds
C)
Tim Berners-Lee
D)
Steve Wozniak

Correct Answer :   Linus Torvalds


Explanation : Git was originally authored by Linus Torvalds in 2005 for development of the Linux kernel, with other kernel developers contributing to its initial development. Since 2005, Junio Hamano has been the core maintainer.

A)
7 April 2000
B)
7 April 2002
C)
7 April 2004
D)
7 April 2005

Correct Answer :   7 April 2005

A)
A nickname for GitHub.
B)
A programming language.
C)
A version control system.
D)
A remote repository platform.

Correct Answer :   A version control system.

A)
True
B)
False
C)
Can not say
D)
--

Correct Answer :   False

A)
git --version
B)
gitVersion
C)
getGitVersion
D)
git help version

Correct Answer :   git --version

A)
--A
B)
--all
C)
--global
D)
No need to specify, that is the default.

Correct Answer :   --global

A)
git remote add new
B)
git remote origin
C)
git remote new origin
D)
git remote add origin

Correct Answer :   git remote add origin

A)
All new and updated files are staged
B)
All new files are staged
C)
Only updated files are staged
D)
Files are staged in alphabetical order.

Correct Answer :   All new and updated files are staged

A)
The current git version you're running
B)
A list of remote repositories you are connected to
C)
The last 5 git versions you've installed
D)
An inline editor for modifying remote repositories

Correct Answer :   A list of remote repositories you are connected to

A)
--all
B)
--update
C)
--master
D)
--global

Correct Answer :   --global

A)
can only contain references to blobs
B)
can only contain references to other tree objects
C)
can contain references to other tree objects or blobs
D)
can contain file data or references to other tree objects or blobs

Correct Answer :   can contain references to other tree objects or blobs

A)
temporary
B)
store
C)
cache
D)
no value (default)

Correct Answer :   temporary

A)
Global International Track.
B)
Global information Traffic.
C)
Global information Tracker
D)
None of the above

Correct Answer :   Global information Tracker

A)
git log -f
B)
git log -n
C)
git config -n
D)
git log status

Correct Answer :   git log -n

A)
init only the main submodule of the repository
B)
check out a branch from the repository without some of its commits
C)
clone a remote such that you get a working copy but no repository (no .git folder)
D)
check out only some files from the repository into your working copy

Correct Answer :   check out only some files from the repository into your working copy

A)
git config user.email
B)
git config email
C)
git email.user
D)
None of the above

Correct Answer :   git config user.email

A)
git add
B)
git add --all
C)
git add --files
D)
None of the above

Correct Answer :   git add --all

A)
--status
B)
git status
C)
git getStatus
D)
git config --status

Correct Answer :   git status

A)
start git
B)
git start
C)
git init
D)
initialize git

Correct Answer :   git init

A)
True
B)
False
C)
Can not say
D)
--

Correct Answer :   False

A)
Every 2 weeks.
B)
Every month.
C)
Every year.
D)
Commit history is never automatically deleted.

Correct Answer :   Commit history is never automatically deleted.

A)
SHA-1
B)
SHA-2
C)
MD5
D)
Parity Bit

Correct Answer :   SHA-1

A)
Git add .
B)
Git commit .
C)
Git commit add .
D)
Git stage -a

Correct Answer :   Git add .

A)
Git add "My first commit"
B)
Git commit "My first commit"
C)
Git commit -m "I'm coding!"
D)
Git message "My first commit"

Correct Answer :   Git commit -m "I'm coding!"

A)
Git merge
B)
Git checkout
C)
Git switch
D)
Git branch

Correct Answer :   Git checkout

A)
git com
B)
git save
C)
git snapshot
D)
git commit

Correct Answer :   git commit

A)
git commit -log "New email"
B)
git commit -mess "New email"
C)
git commit message "New email"
D)
git commit -m "New email"

Correct Answer :   git commit -m "New email"

A)
git log
B)
git commits
C)
git history
D)
git --full-log

Correct Answer :   git log

A)
git commitHelp
B)
gitHelp commit
C)
git commit -help
D)
git commit readme

Correct Answer :   git commit -help

A)
ignoring files based on metadata
B)
applying text substitutions on commit/checkout
C)
applying text substitutions inside commits received from remotes
D)
transforming how the repository is presented in `git status` and `git log`

Correct Answer :   applying text substitutions on commit/checkout

A)
PATH environment variable
B)
git.binaries global config
C)
GIT_EXEC_PATH environment variable
D)
the directory where git itself is located

Correct Answer :   GIT_EXEC_PATH environment variable

A)
No, it can't be done
B)
Yes, Git opens a hex editor
C)
Yes, only if you set diff.binary setting to true
D)
Yes, only if you set up a binary-to-text converter in git attributes

Correct Answer :   Yes, only if you set up a binary-to-text converter in git attributes

A)
All commits reachable from branch2, but not reachable from branch1
B)
All commits reachable from branch1, but not reachable from branch2
C)
All commits created in the period between commits at branch1 and branch2
D)
All commits that contain files changed between commits at branch1 and branch2

Correct Answer :   All commits reachable from branch2, but not reachable from branch1

A)
In a sparse working tree
B)
When you plan to push to a remote
C)
When working in someone else's branch
D)
When you have orphaned objects you want to restore

Correct Answer :   When you have orphaned objects you want to restore

A)
A secret part of Git config.
B)
A separate version of the main repository.
C)
A small wooden stick you can use to type commands.
D)
Nothing, it is a nonsense word.

Correct Answer :   A separate version of the main repository.

A)
git newBranch "new-email"
B)
git add branch "new-email"
C)
git branch new-email
D)
git branch new "new-email"

Correct Answer :   git branch new-email

A)
git branch new-email
B)
git checkout new-email
C)
git branch -move new-email
D)
git checkout branch new-email

Correct Answer :   git checkout new-email

A)
Vim
B)
Bash
C)
Emacs
D)
Notepad++

Correct Answer :   Vim

A)
Apache Maven
B)
Java Development Kit 1.8 or newer
C)
Jakarta Enterprise Edition web profile compliant server
D)
Nothing

Correct Answer :   Nothing

A)
username and password
B)
username and IP address
C)
email address and password
D)
username and email address

Correct Answer :   username and email address

A)
to create new branch
B)
to switch between branches
C)
Both (A) and (B)
D)
to delete the repository

Correct Answer :   Both (A) and (B)

A)
git email--amend
B)
git config --global user.email
C)
git clean -f
D)
git log --author=""

Correct Answer :   git config --global user.email

A)
git clone
B)
git fork
C)
git pull-request
D)
Forking it via the GitHub interface.

Correct Answer :   Forking it via the GitHub interface.

A)
Commit-add
B)
Commit-msg
C)
Post-commit
D)
Prepare-commit-msg

Correct Answer :   Commit-add

A)
Any local Git trees
B)
Current working tree
C)
Any files on the computer
D)
Current working tree and remote working tree

Correct Answer :   Any local Git trees

A)
has no remotes
B)
has an empty working tree
C)
has contents of .git directory instead of a working tree
D)
has .git directory in a separate location from its working tree

Correct Answer :   has contents of .git directory instead of a working tree

A)
Inside .git/refs directory
B)
Inside either .git/refs directory or .git/packed-refs file
C)
Inside .git/packed-refs file
D)
Inside either .git/branches file or .git/packed-refs file

Correct Answer :   Inside either .git/refs directory or .git/packed-refs file

A)
To perform garbage collection on a single branch
B)
To perform a text search inside a particular set of branches
C)
To list all local branches except the ones filtered out by some predicate
D)
To rewrite history by applying some operation to all commits

Correct Answer :   To rewrite history by applying some operation to all commits

A)
-b
B)
-all
C)
-new
D)
-newbranch

Correct Answer :   -b

A)
git add new-email
B)
git commit -merge new-email
C)
git merge new-email
D)
None of the above

Correct Answer :   git merge new-email

A)
git
B)
saved files
C)
git documents
D)
staging area/index

Correct Answer :   staging area/index

A)
git master --status
B)
git branch --merged
C)
git branch --status
D)
git status --merged

Correct Answer :   git branch --merged

A)
a type of architecture used to manage large databases
B)
a system that shows, tracks, and controls changes to a set of files over time
C)
a type of software that links a project with a GitHub repository
D)
a programmatic design pattern used to manage code between multiple engineering teams

Correct Answer :   a system that shows, tracks, and controls changes to a set of files over time

A)
git gone new-email
B)
git delete new-email
C)
git branch -d new-email
D)
git delete branch new-email

Correct Answer :   git branch -d new-email

A)
git remote add origin https://abc.xyz/d/e.git
B)
git origin=https://abc.xyz/d/e.git
C)
git add origin https://abc.xyz/d/e.git
D)
git remote https://abc.xyz/d/e.git

Correct Answer :   git remote add origin https://abc.xyz/d/e.git

A)
git push origin
B)
git merge remote
C)
git remote push
D)
git remote commit

Correct Answer :   git push origin

A)
Tags
B)
Branches
C)
Merge commits
D)
Regular commits

Correct Answer :   Branches

A)
overwrite global configuration
B)
control access permissions for refs
C)
add metadata to some files or objects
D)
specify some settings for particular files or types of files in the repository

Correct Answer :   specify some settings for particular files or types of files in the repository

A)
track authors of changes
B)
store the history of merge conflicts
C)
store the history of updates of refs
D)
synchronize with remote-tracking branches

Correct Answer :   store the history of updates of refs

A)
That authentication will be required
B)
That the remote branch may not exist
C)
That there is a one-to-many mapping between refs
D)
That overwriting (non-fast-forward) updates are allowed

Correct Answer :   That overwriting (non-fast-forward) updates are allowed

A)
tag
B)
remote
C)
author
D)
branch

Correct Answer :   tag

A)
Tags can only point to a branch
B)
Tags cannot be pushed to a remote
C)
Branches contain full copies of the files in their histories
D)
Tags cannot be moved and can be cryptographically signed

Correct Answer :   Tags cannot be moved and can be cryptographically signed

A)
git origin help
B)
git get log origin
C)
git fetch origin
D)
git status remote origin

Correct Answer :   git fetch origin

A)
git log new-email
B)
git diff new-email
C)
git status new-email
D)
git changes new-email

Correct Answer :   git diff new-email

A)
fetch and merge
B)
add and commit
C)
branch and checkout
D)
None of the above

Correct Answer :   fetch and merge

A)
Collaboration friendly
B)
Data redundancy and replication
C)
Data redundancy and replication
D)
All of the above

Correct Answer :   All of the above

A)
C Language
B)
C++ Language
C)
C# Language
D)
PHP Language

Correct Answer :   C Language

A)
‘GIT PUSH’ remote refs along with associated objects.
B)
‘GIT PUSH’ updates remote refs.
C)
‘GIT PUSH’ updates remote refs along with associated objects.
D)
None of the above

Correct Answer :   ‘GIT PUSH’ updates remote refs along with associated objects.