Get All Weeks Version Control Coursera Quiz Answers
Table of Contents
Version Control Week 01 Quiz Answers
Quiz 1: Module 1 Assessment
Q1. Which one of these statements about Git is true?
[expand title=View Answer] Git helps manage the history of the project. [/expand]
Q2. Which one of these statements about branches is true?
[expand title=View Answer] JThe default branch is named “master”. [/expand]
Q3. What is a request to merge your branch into another branch called?
[expand title=View Answer]Pull request [/expand]
Q4. If a remote repository is offline, which one of the following is true?
[expand title=View Answer]You can continue to work with the local repository. [/expand]
Q5. Which one of the following is true?
[expand title=View Answer] Git implements distributed version control.[/expand]
Q6. Which one of these statements about commits is true?
[expand title=View Answer] A commit is a snapshot of the project. [/expand]
Q7. Which location contains the list of files that will be included in the next commit?
[expand title=View Answer] Staging area[/expand]
Q8. Which location contains the commit history of a project?
[expand title=View Answer] Remote repository[/expand]
Q9. When a file is first placed in the working tree, what is its status?
[expand title=View Answer] Untracked [/expand]
Q10. What must you do to add a new file to the next commit?
[expand title=View Answer] Add the file to the staging area.[/expand]
Q11. If you create a local repository in a folder with existing files, what will be the status of the files?
[expand title=View Answer] Untracked [/expand]
Q12. Immediately after you commit, where is the commit located?
[expand title=View Answer]Local repository [/expand]
Q13. Which one of these statements about remote repositories is true?
[expand title=View Answer]A remote repository usually has a working tree.[/expand]
Q14. What is a local copy of a remote repository called?
[expand title=View Answer] Clone [/expand]
Q15. After you clone a repository, which one of the following is true?
[expand title=View Answer] The remote repository information is available in the local repository.[/expand]
Q16. What is origin?
[expand title=View Answer] An alias for the remote repository’s URL. [/expand]
Q17. What must you do to add a local commit to the remote repository?
[expand title=View Answer] Push [/expand]
Version Control Week 02 Quiz Answers
Quiz 1: Module 2 Assessment
Q1. In Git, what is modeled as a directed acyclic graph?
[expand title=View Answer] The commit history. [/expand]
Q2. How are Git commits connected?
[expand title=View Answer] A commit references its parent(s).[/expand]
Q3. What is a Git ID?
[expand title=View Answer]The name of a Git object.[/expand]
Q4. If a large file changes by one character, what would you expect to happen to its corresponding SHA-1 value?
[expand title=View Answer]It would change drastically. [/expand]
Q5. What do branch labels point to?
[expand title=View Answer] The most recent commit of a branch. [/expand]
.
Q6. How many HEAD references are in a local repository?
[expand title=View Answer] One. [/expand]
Q7. Which one of these statements is correct?
[expand title=View Answer]A tag always points to a specific commit.[/expand]
Q8. What happens when a branch is created?
[expand title=View Answer] A branch label is created. [/expand]
Q9. Which one of these statements is correct?
[expand title=View Answer] Checkout updates the working tree and HEAD reference.[/expand]
Q10. What does a detached HEAD mean?
[expand title=View Answer] The HEAD reference points directly to a commit SHA-1. [/expand]
Q11. What does “deleting a branch” immediately do?
[expand title=View Answer] Deletes a branch label. [/expand]
Q12. Which one of the following statements is true?
[expand title=View Answer]Merging combines the work of branches.[/expand]
Q13. Which one of the following statements about fast-forward merges is true?
[expand title=View Answer] The merge may result in a merge conflict. [/expand]
Q14. If Git informs you that a fast-forward merge is not possible, which one of these statements is most likely to be true?
[expand title=View Answer] A commit was made on the base branch after the topic branch was created.[/expand]
Q15. Which one of these statements about a merge involving a merge commit is true?
[expand title=View Answer] Git places the result of the merge into a new commit.[/expand]
Version Control Week 03 Quiz Answers
Quiz 1: Module 3 Assessment
Q1. Which one of the following statements about merge conflicts is true?
[expand title=View Answer] Merge conflicts occur when a person needs to make a decision. [/expand]
Q2. Assume that you have a topic branch merging into a base branch. Which one of the following is involved in resolving a merge conflict?
[expand title=View Answer] Adding file(s) to the staging area.[/expand]
Q3. Assume that you have a topic branch merging into a base branch. Which one of these situations is most likely to create a merge conflict?
[expand title=View Answer]In README.md, the topic branch modifies the header and the base branch modifies the footer. [/expand]
Q4. Which one of the following statements is true?
[expand title=View Answer]A tracking branch label sometimes points to the same SHA-1 as the remote branch label. [/expand]
Q5. Which one of the following is most likely to have tracking branches?
[expand title=View Answer] A local repository. [/expand]
Q6. Immediately after you clone a repository, which one of these statements is most likely to be true?
[expand title=View Answer] The tracking branch label and local branch label point to the same commit. [/expand]
Q7. If you perform a fetch and new objects are retrieved, which one of these is most likely to be true?
[expand title=View Answer] The local branch and tracking branch will contain the exact same commits.[/expand]
Q8. Which one of these statements is true?
[expand title=View Answer] Fetch does not update the local branch tip. [/expand]
Q9. Which one of these statements is true?
[expand title=View Answer] Pull combines fetch and merge. [/expand]
Q10. A pull may result in which one of the following?
[expand title=View Answer] A fast-forward merge. [/expand]
Q11. When should you avoid rebasing a branch?
[expand title=View Answer] Always. [/expand]
Q12. Which one of the following statements is true?
[expand title=View Answer]A rebase may result in a merge conflict.[/expand]
Q13. Which one of the following statements is true?
[expand title=View Answer] A rebase may rewrite the commit history.[/expand]
Q14. Which one of the following statements is true?
[expand title=View Answer] A rebase may result in a merge conflict.[/expand]
Q15. Which one of the following statements is true?
[expand title=View Answer] An interactive rebase may involve a single branch. [/expand]
Version Control Week 04 Quiz Answers
Quiz 1: Module 4 Assessment
Q1. Which one of these is the main goal of a pull request?
[expand title=View Answer] Merge a branch into a project. [/expand]
Q2. Which one of these statements is true?
[expand title=View Answer] A pull request can act as a form of review and approval.[/expand]
Q3. Which one of these statements is true?
[expand title=View Answer] Merging a pull request may result in a merge conflict. [/expand]
Q4. Which one of these statements is true?
[expand title=View Answer] Pull requests can facilitate team discussion. [/expand]
Q5. When can you open a pull request?
[expand title=View Answer] When you want feedback on your work. [/expand]
Q6. Which one of these is true about squash merges?
[expand title=View Answer] A squash merge can result in deleted commits.[/expand]
Q7. Which one of these statements is true?
[expand title=View Answer]A fork is a remote repository. [/expand]
Q8. Which one of the statements about forks is true?
[expand title=View Answer] The upstream repository may have access to the fork.[/expand]
Q9. After forking a repository, which one of these statements is true?
[expand title=View Answer] The commit histories of the two repositories may begin to differ. [/expand]
Q10. Which one of these statements is true?
[expand title=View Answer] Cloning a forked repository creates a local repository.[/expand]
Q11. Assume that you have a forked repository and an upstream repository. Who selects the merge strategy if a pull request is merged?
[expand title=View Answer]The person merging the pull request.[/expand]
Q12. Which one of these statements about centralized workflows is true?
[expand title=View Answer] There is usually a single branch on the remote repository. [/expand]
Q13. Which one of these statements about feature branch workflows is true?
[expand title=View Answer] Most work is done on a feature branch. [/expand]
Q14. Which one of these statements about forking workflows is true?
[expand title=View Answer] A forking workflow involves multiple remote repositories. [/expand]
Q15. Which one of these statements about Gitflow workflows is true?
[expand title=View Answer] Gitflow workflows can accommodate hotfixes.[/expand]
Get All Course Quiz Answers of Machine Learning Specialization
Cryptography and Information Theory Quiz Answers
Symmetric Cryptography Coursera Quiz Answers