Programming 2 - Lesson 10

Programming 2 - Lesson 10

11th Grade

9 Qs

quiz-placeholder

Similar activities

tech SAVAGE!

tech SAVAGE!

11th Grade

10 Qs

GitHub Quiz

GitHub Quiz

9th - 12th Grade

11 Qs

GitHub Jan12

GitHub Jan12

11th Grade - University

10 Qs

GIT - Quiz 2

GIT - Quiz 2

KG - Professional Development

6 Qs

Computer Science Very Hard

Computer Science Very Hard

1st - 12th Grade

10 Qs

Kuis Ulang

Kuis Ulang

9th - 12th Grade

10 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 10

Programming 2 - Lesson 10

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 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]

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Git, what is the difference between an unmodified file and a modified file?

A modified file has been changed since the last commit.

An unmodified file has changes that haven’t been saved.

There is no difference.

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do commits in Git relate to each other?

Commits are linked through parent-child relationships.

Commits are unrelated to each other.

Commits overwrite each other.