Search Header Logo

Mastering Git and GitHub

Authored by Samuel Okon

Professional Development

Professional Development

Used 6+ times

Mastering Git and GitHub
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 15 pts

What is the primary purpose of Git?

To create and manage databases.

To design user interfaces for applications.

To compile and run programming languages.

To manage and track changes in source code during software development.

2.

MULTIPLE CHOICE QUESTION

45 sec • 15 pts

Explain the difference between a local and a remote repository in Git.

Local repositories are on your machine; remote repositories are on a server.

Local repositories are only for backups; remote repositories are for collaboration.

Local repositories require internet access; remote repositories do not.

Local repositories are stored in the cloud; remote repositories are on your machine.

3.

MULTIPLE CHOICE QUESTION

10 sec • 10 pts

What command is used to initialize a new Git repository?

git create

git start

git init

git newrepo

4.

MULTIPLE CHOICE QUESTION

20 sec • 15 pts

How do you stage changes in Git before committing?

Execute 'git merge ' to stage changes.

Use 'git commit ' to stage changes.

Run 'git push' to stage changes before committing.

Use 'git add file' or 'git add .' to stage changes.

5.

FILL IN THE BLANK QUESTION

45 sec • 20 pts

What is the command to clone a GitHub repository? The command is _____.

6.

MULTIPLE CHOICE QUESTION

45 sec • 20 pts

What is the role of branching in Git when collaborating on a project?

Branching in Git allows developers to work on multiple features simultaneously without affecting the main codebase.

Branching in Git is used to permanently delete unwanted files from the repository.

Branching in Git serves as a method to track the history of all changes made in the repository.

Branching in Git is a way to create a single version of the project for deployment.

7.

MULTIPLE CHOICE QUESTION

20 sec • 15 pts

What command would you use to view the commit history in Git?

git status

git log

git show

git history

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Professional Development