Search Header Logo

Programming 2 - Lesson 10

Authored by Rachel FitzZaland

Computers

11th Grade

Used 2+ times

Programming 2 - Lesson 10
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a Git branch?

A folder in your project.

A standalone version of your project.

A Git command.

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Why do we use branches in Git? (Select all that apply)

To work on different parts of a project separately.

To track files that have been deleted.

To let multiple people work on the same project at the same time.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does HEAD point to in Git?

The latest commit made.

The branch you're currently on.

A deleted file.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to list all the branches in a Git repository?

git branch

git commit

git log

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when you switch branches in Git?

The latest commit is deleted.

The working directory changes to reflect the new branch.

All branches are merged automatically.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a feature branch?

To store deleted files.

To work on a specific part of a project separately.

To delete untracked files.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command would you use to create a new branch in Git?

git branch [branch-name]

git commit [branch-name]

git switch [branch-name]

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?