Programming 2 - Lesson 11

Programming 2 - Lesson 11

11th Grade

9 Qs

quiz-placeholder

Similar activities

Arduino Programming

Arduino Programming

7th - 12th Grade

12 Qs

HTML, Bootstrap y GitHub

HTML, Bootstrap y GitHub

11th Grade - University

12 Qs

GitHub Quiz

GitHub Quiz

9th - 12th Grade

11 Qs

GIT - Quiz 2

GIT - Quiz 2

KG - Professional Development

6 Qs

GitHub Jan12

GitHub Jan12

11th Grade - University

10 Qs

DevNet Express

DevNet Express

10th Grade - Professional Development

11 Qs

Programming 3 - Lesson 5

Programming 3 - Lesson 5

11th Grade

14 Qs

Programming 3 - Lesson 4

Programming 3 - Lesson 4

11th Grade

10 Qs

Programming 2 - Lesson 11

Programming 2 - Lesson 11

Assessment

Quiz

Computers

11th Grade

Easy

Created by

Rachel FitzZaland

Used 2+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of merging in Git?

To create a new branch.

To combine changes from one branch into another.

To delete a branch.

To clone a repository.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of merge occurs when the branch histories have not diverged?

Rebase

Detached HEAD

Fast-Forward Merge

Three-Way Merge

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the command to merge a branch named feature into the current branch?

git merge feature

git branch feature

git checkout feature

git switch feature

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does Git do if you try to switch branches with uncommitted changes?

Allows the switch and ignores the changes.

Deletes the changes.

Prevents the switch if the changes conflict with the new branch.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a three-way merge?

A merge that happens when branch histories have not diverged.

A merge that involves three branches.

A merge where the histories of two branches have diverged, and Git creates a merge commit.

A merge that deletes one of the branches.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command creates a new branch and switches to it in one step?

git switch -b branch_name

git branch branch_name

git checkout -b branch_name

git log branch_name

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a detached HEAD state?

When the HEAD pointer points directly to a commit instead of a branch.

When a branch has no commits.

When a branch is deleted.

When Git can’t find a commit.

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to view the commit history in Git?

git status

git log

git merge

git commit

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens to a branch after you merge it into another branch?

It gets automatically deleted.

It remains in the repository until you manually delete it.

It is renamed.

It disappears from the commit history.