Get All Weeks Getting Started with Git and GitHub Coursera Quiz Answers
Week 01: Getting Started with Git and GitHub Coursera Quiz Answers
Quiz 01 : Getting Started with Git and GitHub
Q1. Which of the following do you use to request that someone reviews and approves your changes to a project before they become final?
- Commit changes
- Fork
- Pull request
- Repository
Q2. Which git command allows you to see the state of your working directory and the staged snapshot of your changes?
- git-log
- git-reset
- git-status
- git-checkout
Q3. Which of the following is a feature of the Git Repository model?
- It corrects bad code in a project
- It is based on a binary tree
- It is a distributed version control system
- It sorts code into folders and sub-folders
Q4. In GitHub, what is an organization?
- The top level of a repository tree
- A path to the code files in a project
- A collection of user accounts that owns repositories
- A name you must specify for your repository
Q5. Under which tab on GitHub will you find all the source files for a repository?
- Pull Requests
- Projects
- Settings
- <> Code
Quiz 02 : Getting Started with Git and GitHub
Q1. How is GitHub related to Git?
- GitHub is a main section in the Git project workflow.
- GitHub is an online hosting service for Git repositories.
- GitHub is an open source tool used to create Git.
- GitHub is a program required for version control on Git.
Q2. What type of version control system is Git?
- Remote
- Centralized
- Local
- Distributed
Q3. What is a repository?
- A basic unit of storage in Git that cannot be changed
- A plain-text file that explains the purpose of a project
- A collection of user accounts that are connected to a pull request
- A data structure that stores documents and source code
Q4. What is the purpose of a license file?
- Describe the purpose of the project.
- Establish secure remote login between computers.
- Record all changes made to a repository.
- Express how people can use your code.
Q5. On GitHub, what are commits?
- Saved changes
- Pull requests
- Tags
- Merges
Week 02: Getting Started with Git and GitHub Coursera Quiz Answers
Quiz 01 : GitHub Workflows with Branches and Git Commands
Q1. What is stored on the master or main branch?
- All the project files, including files from forks
- The original, unchanged version of the code
- Files which contain documentation only
- The deployable version of the project code
Q2. Which Git command transfers changes from your local repository to the remote repository?
- git-pull
- git-push
- git-fetch
- git-remote
Q3. When would you fork a project?
- To create a backup of the master branch of the project
- To give a new user permissions to the project
- To use an existing repository as the base for a new project
- To add a branch to an existing tree in the project
Q4. Which GitHub developer command prepares an email submission in a form appropriate for a Linux kernel-style public workflow?
- git-send-email
- git-format-patch
- git-request-email
- git-request-pull
Q5. Which Git command can a repository administrator use to allow anonymous downloads from the repository?
- git-daemon
- git-remote
- git-shell
- git-am
Quiz 02 : GitHub Workflows with Branches and Git Command
Q1. What happens if you make a change on a repository branch that you don’t own?
- GitHub issues a push request for the owner.
- GitHub generates an error message.
- GitHub makes a pull request.
- GitHub undoes the changes
Q2. You need to run three commands to push local changes to the GitHub repository. What is the third command?
- git-add
- git-commit -m
- git-push
- git-remove -v
Q3. What are three commonly used commands for working with remote repositories?
- push, pull, fetch
- create, delete, copy
- open, close, send
- open, edit, push
Q4. When managing forks, which command can you use to fetch and merge the remote branch in a single step?
- git-fetch upstream
- git-pull downstream
- git-pull upstream
- git-merge upstream/master
Q5. Which command can a repository administrator use to allow anonymous downloads from repositories?