Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Are Git hooks files version controlled?

Answer»

Are Git HOOKS files version controlled?
Choose the CORRECT OPTION from below list
(1)No
(2)Yes

Answer:-(1)No

2.

Which scripting language is used in the default sample hook files?

Answer»

Which scripting language is used in the default SAMPLE hook FILES?
Choose the correct option from below list
(1)Ruby
(2)PHP
(3)Python
(4)Shell

Answer:-(4)Shell

3.

Old reflog entries can be cleaned using ________

Answer»

Old reflog entries can be cleaned using ________
Choose the correct option from below LIST
(1)git reflog REMOVE
(2)git reflog clean
(3)git reflog -d
(4)git reflog EXPIRE

Answer:-(4)git reflog expire

4.

The result of the command git blame filename will have the following, except ___________

Answer»

The result of the command git blame filename will have the following, except ___________
Choose the CORRECT OPTION from below list
(1)updated TIMESTAMP
(2)COMMIT hash
(3)author's email address
(4)author's name

Answer:-(3)author's email address

5.

The email address of the author can be got instead of the authors name in the result using ____________.

Answer»

The EMAIL address of the author can be got instead of the authors name in the result using ____________.
Choose the correct option from below list
(1)git blame -a filename
(2)git blame -E filename
(3)git blame filename
(4)git blame -e filename

Answer:-(4)git blame -e filename

6.

Which type of search is used in Git Bisect?

Answer»

Which type of SEARCH is USED in Git Bisect?
CHOOSE the CORRECT option from below LIST
(1)Binary search
(2)Linear search
(3)Jump search
(4)Interpolation search

Answer:-(1)Binary search

7.

Which of the following is a server-side hook?

Answer»

Which of the FOLLOWING is a server-side hook?
Choose the correct OPTION from below list
(1)prepare-commit
(2)post-receive
(3)pre-commit
(4)post-commit

Answer:-(2)post-receive

8.

When you run git commit, which hook(s) is are called?

Answer»

When you run GIT commit, which HOOK(s) is are called?
CHOOSE the CORRECT option from below list
(1)Both pre and post commits
(2)pre-commit
(3)succeeding-commit
(4)post-commit

Answer:-(1)Both pre and post commits

9.

We can reset Git Bisect using git bisect reset even in the middle of a bisect.

Answer»

We can RESET Git BISECT using git bisect reset EVEN in the middle of a bisect.
Choose the CORRECT option from below list
(1)TRUE
(2)False

Answer:-(1)True

10.

Git keeps track of all the submodules and their paths in the project in _____________

Answer»

Git keeps TRACK of all the submodules and their paths in the project in _____________
Choose the correct OPTION from below list
(1).gitmodules file
(2).git folder
(3).gitmodule file
(4)Remote repository

Answer:-(1).gitmodules file

11.

How to get a complete reflog of all refs?

Answer»

How to get a complete reflog of all refs?
CHOOSE the correct OPTION from below list
(1)git reflog show --all
(2)git reflog show
(3)git reflog
(4)git reflog --all

Answer:-(1)git reflog show --all

12.

On adding a subproject using git submodule add, how many files will be added in the main repository?

Answer»

On adding a subproject using git submodule ADD, how many FILES will be added in the main repository?
Choose the correct option from below list
(1)4
(2)1
(3)2
(4)3

Answer:-(3)2

13.

The reference of the deleted commit can be got using git reflog.

Answer»

The reference of the deleted commit can be got using git reflog.
Choose the CORRECT option from below list
(1)TRUE
(2)False

Answer:-(1)True

14.

The purpose of Git Blame is to find ____________

Answer»

The purpose of Git Blame is to find ____________
Choose the correct option from below list
(1)Who wrote the feature
(2)Who CREATED the FILE
(3)The commit and the AUTHOR of a PARTICULAR line
(4)When a file was created

Answer:-(3)The commit and the author of a particular line

15.

The result of git blame filename will return the original lines of source code in the console.

Answer»

The RESULT of git blame filename will return the ORIGINAL lines of source code in the console.
Choose the correct option from below LIST
(1)False
(2)TRUE

Answer:-(2)True

16.

How to declare that a commit is buggy in Git Bisect?

Answer»

How to declare that a COMMIT is buggy in Git Bisect?
Choose the correct option from below list
(1)git bisect error
(2)git error bisect
(3)git bisect BUG
(4)git bisect bad

Answer:-(4)git bisect bad

17.

How to declare that a commit is errorless in Git Bisect?

Answer»

How to declare that a COMMIT is errorless in Git BISECT?
Choose the CORRECT option from below list
(1)git bisect errorless
(2)git bisect perfect
(3)git good bisect
(4)git bisect good

Answer:-(4)git bisect good

18.

Which option in Git Blame is used to filter only the commit hash?

Answer»

Which option in Git BLAME is used to filter only the commit hash?
CHOOSE the correct option from below list
(1)-L
(2)-E
(3)-s
(4)-S

Answer:-(3)-s

19.

What is the command to store the uncommitted changes temporarily?

Answer»

What is the command to store the uncommitted changes temporarily?
Choose the CORRECT option from below list
(1)git commit
(2)git tempstore
(3)git stash
(4)git store

Answer:-(3)git stash

20.

Developer A found that a button, which was working fine earlier is not working in the project.

Answer»

Developer A found that a button, which was working fine earlier is not working in the project.
It is not sure which commit introduced this BUG! Which of the following Git COMMANDS would you SUGGEST?
Choose the correct option from below list
(1)Git binary search
(2)Git search
(3)Git BLAME
(4)Git bisect

Answer:-(4)Git bisect

21.

Reflog entry has timestamps attached to it.

Answer»

Reflog entry has timestamps attached to it.
Choose the CORRECT option from below LIST
(1)TRUE
(2)FALSE

Answer:-(2)False

22.

A tag in Git context is a _______________.

Answer»

A tag in Git context is a _______________.
Choose the correct OPTION from below list
(1)REFERENCE to a specific COMMIT
(2)KEYWORD
(3)Search String

Answer:-(1)Reference to a specific commit

23.

Which command is useful to undo a git rebase?

Answer»

Which command is useful to UNDO a GIT rebase?
Choose the correct option from below LIST
(1)git undo
(2)git blame
(3)git log
(4)git REFLOG

Answer:-(4)git reflog

24.

Which option is used to remove a single stash entry from a list of stash entries?

Answer»

Which option is USED to REMOVE a single stash entry from a list of stash ENTRIES?
Choose the CORRECT option from below list
(1)drop
(2)delete
(3)remove
(4)clear

Answer:-(1)drop

25.

Developer A has done some changes in the subproject and pushed it. Developer B can pull those changes using __________

Answer» DEVELOPER A has done some changes in the subproject and pushed it. Developer B can pull those changes using __________
Choose the correct OPTION from below list
(1)git fetch ORIGIN
(2)git submodule update
(3)git pull origin
(4)git submodule add

Answer:-(2)git submodule update
26.

The indexed changes in a subproject can be viewed using __________

Answer»

The indexed changes in a subproject can be viewed using __________
Choose the correct option from below list
(1)git submodule status
(2)git SHOW
(3)git submodule show
(4)git status

Answer:-(1)git submodule status

27.

Can a commit be taken from one branch and moved to a different branch in Git?

Answer»

Can a commit be taken from one branch and moved to a different branch in GIT?
Choose the correct option from below LIST
(1)No
(2)YES

Answer:-(2)Yes

28.

Can branches be created inside the Git submodule?

Answer»

Can branches be created INSIDE the GIT submodule?
Choose the CORRECT OPTION from below list
(1)No
(2)Yes

Answer:-(2)Yes