Getting Started with Git and GitHub Coursera Quiz Answers

Get All Weeks Getting Started with Git and GitHub Coursera Quiz Answers

Collaboration and social coding are crucial parts of contemporary Software Engineering practices and the DevOps culture. In this course, you’ll be introduced to collaborative version control and popular Git platforms.

You will explore key Git concepts such as branching and repositories, as well as the use of Git commands. You will also learn and practice various Git concepts such as forking, cloning, and merging workflows. You will learn to use GitHub to work effectively as a team, and perform common Git operations, such as Pull Requests, from both the Web UI and command line. Developed and taught by experienced IBM practitioners, in this course, you’ll gain vital skills and hands-on experience using Git and GitHub.

Each module contains hands-on labs for you to apply and practice what you learn. The course wraps up with a final project where you will start building your portfolio by creating and sharing a public/open-source GitHub project. All hands-on activities in this course can be performed using web-browser-based tools and interfaces. Installation of any specialized software is NOT required on your own computer in order to complete the course.

Enroll on Coursera

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?

  • git-daemon
  • git-rerere
  • git-am
  • git-shell
Conclusion:

I hope this Getting Started with Git and GitHub Coursera Quiz Answers would be useful for you to learn something new from this Course. If it helped you then don’t forget to bookmark our site for more Quiz Answers.

This course is intended for audiences of all experiences who are interested in learning about new skills in a business context; there are no prerequisite courses.

Keep Learning!

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!