Git/Git Mcq Question Sample Test,Sample questions

Question:
 git fetch + git merge equal to?

1.git push

2. git branch

3.git pull

4.None of the above


Question:
 How do you save the current state of your code into the git version control?

1.Using git stage

2.Using git commit

3.Using git push

4.Using git add


Question:
 Identify the correct commit syntax for all changes with a message?

1. git add -a "I'm coding"

2.git commit -am "I'm coding"

3.git message -am "I'm coding"

4.None of these


Question:
 The files that can be committed are always present in git 

1.working directory

2.staging area

3.unstaged area

4.Anywhere, there is no barrier


Question:
 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

1.git head

2. git conflict

3.git status

4.git config


Question:
 Which of the following Git repository hosting functions?

1.Gitlab

2.Github

3.Bitbucket

4.All of the above


Question:
 Which of these git client commands creates a copy of the repository?

1.clone

2.update

3.import

4.checkout


Question:
A head is nothing but a reference to the last commit object of a branch.

1.Yes

2. No

3.Can be yes or no

4.Can not say


Question:
A repository is a file structure where git stores all the project-based files.

1.TRUE

2.FALSE

3.Can be true or false

4.Can not say


Question:
A _________ keeps track of the contributions of the developers working as a team on the projects.

1. CVS

2.DVF

3.VCS

4.LFS


Question:
Command is useful for getting a high-level overview of the project history

1.git rebase

2.git reset --hard

3.git log --author=""

4.git log --oneline


Question:
Command line environment is used for interacting with git

1.Git Lab

2.GitHub

3.Git Boot

4.Git Bash


Question:
command to download all the objects and references from a specific repository

1. git log -n

2.git fetch

3.git help

4.git config --list


Question:
Git can be used for which project?

1. Java enterprise project

2..Net project

3.File version management

4.All of the above


Question:
GIT comes from

1.2005

2.2007

3.2004

4.2008


Question:
How do you create a copy of a lab under your own GitHub account so that you can solve the lab?

1. Forking it via the GitHub interface.

2.git clone

3.git pull-request

4.git fork


Question:
What comes first, staging with git add. or committing with git commit?

1.Committing with git commit

2.Staging your commits with git add

3.all of the above

4.None of the mentioned


Question:
What do you by git is-tree?

1. ‘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.

2.‘git is-tree’ represents a tree object including the mode and the name of each item

3.all of the above

4.None of the mentioned


Question:
What is an alternative to merging in git?

1. Basing

2.Rebasing

3.Both 1 and 2

4.None of these


Question:
What is the default text editor for the Bash shell with a Windows-based Git install?

1. Bash

2.Emacs

3.Notepad++

4.Vim


Question:
What is the full form of GIT?

1.Gastro Intestional Track.

2.Gastro International Track.

3.Global information Tracker

4.None of these


Question:
What is the function of ‘GIT PUSH’ in GIT?

1. ‘GIT PUSH’ updates remote refs.

2.‘GIT PUSH’ updates remote refs along with associated objects.

3.'GIT PUSH’ remote refs along with associated objects.

4.None of these


Question:
What is the use of ‘git log’?

1. by author

2.date

3.content

4.All of the above


Question:
What is true about GIT?

1.Git is open-source

2.Git is an example of distributed version control system

3.Used for handling the development of small and large projects

4. All of the above


Question:
Which command creates a copy of an existing git repository.

1. git copy

2. git clone

3.git replace

4. git move


Question:
Which command creates an empty git repository in the specified directory?

1.git init

2.git log .

3.git reset

4.None of the above


Question:
Which command is used to show limited number of commits?

1. git fetch

2.git config

3.git log -n

4.None of the above


Question:
Which command should you use to initialize a new Git repository?

1. git init

2.git install

3.git start

4.git bash


Question:
Which of the following advantage of using GIT?

1.Collaboration friendly

2.Data redundancy and replication

3.Data redundancy and replication

4.All of the Mentioned


Question:
Which of the following file you can configure to ensure that certain file types are never committed to the local Git repository?

1. .gitignore

2.gitignore.txt

3.git.ignore

4.ignore.git


Question:
Which of the following git command that downloads your repository from GitHub to your computer?

1. git fork

2.git commit

3.git clone

4.git push


Question:
Which of the following graphical GIT client for LINUX?

1. Smart git

2.Git Cola

3.Git-g

4.All of the above


Question:
Which of the following is not a git command?

1.git clean

2.git clone

3.git commit

4.Git roll


Question:
Which of the following is not true in terms of git

1. Staging area

2.Fork

3.Stem

4.Push


Question:
Which of the following is true about Centralized version control system?

1.It does not rely on the central server

2. It is victim to single point of failure

3. It rely on the central server

4.Both B and C


Question:
Which of the following isn't a Git configuration scope?

1. User

2.System

3.Local

4.Global


Question:
Which of the following shortcut to staging all the changes you have?

1.git push -am "Message"

2.git add.

3.git commit add.

4.git commit.


Question:
Which of the following vendor acquired GitHub for $7.5 billion in June 2018?

1. IBM

2.Microsoft

3.Google

4.Oracle


Question:
Which of the language is used in GIT?

1.C language

2.HTML language

3.C++ language

4.None of these


Question:
Which one of the following is not part of the data structure of a git repository?

1. Head pointer

2.Body element

3.Branch pointer

4.Commit object


More MCQS

  1. Git Mcq Question
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!