Sail E0 Webinar

MCQs

Total Questions : 35 | Page 2 of 4 pages
Question 11. What are the different options for git reset?
  1.    --hard
  2.    --soft
  3.    --mixed
  4.    All of above
 Discuss Question
Answer: Option D. -> All of above
Question 12. Which of the following is one of Git's powerful features?
  1.    Rooting
  2.    Leafing
  3.    Branching
  4.    Planting
 Discuss Question
Answer: Option C. -> Branching
Question 13.
  1.    pull
  2.    syncronize
  3.    push
  4.    fetch
 Discuss Question
Answer: Option A. -> pull
Question 14. Which file can you configure to ensure that certain files are never committed to the local Git repository?
  1.    Ignore.git
  2.    .gitignore
  3.    gitignore.txt
  4.    git.ignore
 Discuss Question
Answer: Option B. -> .gitignore
Question 15. Which Command is used to show limited number of commits?
  1.    git fetch
  2.    git log -n
  3.    git config
  4.    git status
 Discuss Question
Answer: Option B. -> git log -n
Question 16. Git reset --hard used to?
  1.    uncommitted the changes, unstage the changes
  2.    uncommitted the changes
  3.    uncommitted the changes, unstage the changes, delete the changes
  4.    Unstage the changes
 Discuss Question
Answer: Option C. -> uncommitted the changes, unstage the changes, delete the changes
Question 17. Which vendor acquired GitHub for $7
  1.    Oracle
  2.    Microsoft
  3.    IBM
  4.    Google
 Discuss Question
Answer: Option B. -> Microsoft
Question 18. After you add a file, it becomes
  1.    Committed
  2.    Modified
  3.    Staged
  4.    Untracked
 Discuss Question
Answer: Option C. -> Staged
Question 19. Which of the following is true you when you use the following command?git add -A
  1.    All new and updated files are staged
  2.    Files are staged in alphabetical order.
  3.    All new files are staged
  4.    Only updated files are staged
 Discuss Question
Answer: Option A. -> All new and updated files are staged
Question 20. Which of the following commands will merge branch-a into the master branch?
  1.    git merge master and git checkout branch-a
  2.    git checkout branch-a and git merge master
  3.    git checkout master and git merge branch-a
  4.    git merge branch-a and git checkout master
 Discuss Question
Answer: Option C. -> git checkout master and git merge branch-a

Latest Videos

Latest Test Papers