InterviewSolution
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? |
|
| 2. |
Which scripting language is used in the default sample hook files? |
|
Answer» Which scripting language is used in the default SAMPLE hook FILES? |
|
| 3. |
Old reflog entries can be cleaned using ________ |
|
Answer» Old reflog entries can be cleaned using ________ |
|
| 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 ___________ |
|
| 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 ____________. |
|
| 6. |
Which type of search is used in Git Bisect? |
|
Answer» Which type of SEARCH is USED in Git Bisect? |
|
| 7. |
Which of the following is a server-side hook? |
|
Answer» Which of the FOLLOWING is a server-side hook? |
|
| 8. |
When you run git commit, which hook(s) is are called? |
|
Answer» When you run GIT commit, which HOOK(s) is are called? |
|
| 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. |
|
| 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 _____________ |
|
| 11. |
How to get a complete reflog of all refs? |
|
Answer» How to get a complete reflog of all refs? |
|
| 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? |
|
| 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. |
|
| 14. |
The purpose of Git Blame is to find ____________ |
|
Answer» The purpose of Git Blame is to find ____________ |
|
| 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. |
|
| 16. |
How to declare that a commit is buggy in Git Bisect? |
|
Answer» How to declare that a COMMIT is buggy in Git Bisect? |
|
| 17. |
How to declare that a commit is errorless in Git Bisect? |
|
Answer» How to declare that a COMMIT is errorless in Git BISECT? |
|
| 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? |
|
| 19. |
What is the command to store the uncommitted changes temporarily? |
|
Answer» What is the command to store the uncommitted changes temporarily? |
|
| 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. |
|
| 21. |
Reflog entry has timestamps attached to it. |
|
Answer» Reflog entry has timestamps attached to it. |
|
| 22. |
A tag in Git context is a _______________. |
|
Answer» A tag in Git context is a _______________. |
|
| 23. |
Which command is useful to undo a git rebase? |
|
Answer» Which command is useful to UNDO a GIT rebase? |
|
| 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? |
|
| 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 __________ |
|