Search Header Logo

git quiz 5

Authored by Ava H

Computers

Professional Development

Used 6+ times

git quiz 5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

After staging a series of changes to the index, which command could you used to review prior to a commit.

Use git stash to save your work, then come back later and reapply the stashed commit.

save your work with git local-cache.

Run git hold to save a local copy of what you're doing to return to later.

This is not possible, as you cannot save locally without committing.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Your current repository has three branches: master, beta and ousg-notifications. You've just finished the notification feature and commit the changes to the push-notification branch, and you want to include them in the beta branch. How can you accomplish this?

Check out the master branch and run git merge beta -> push-notifications.

Delete the push-notification branch; it will be committed to the master branch automatically.

Check out the push-notifications branch and run git merge beta.

Check out the beta branch and run git merge push-notifications.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You find that your project has a tag and branch both named push-notification, which causes confusion when trying to print out a given reference. How can you specify which branch you want to look at?

Use git show head/refs/push-notifications.

Use git show push-notifications.

Use git show refs/push-notifications.

Use git show refs/head/push-notifications.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is true of the git push command?

By default a push dosen't sent tags to the remote repository.

Only annotated tags to the remote repository.

Tags are pushed to the remote repository with their respective commits.

Commits can be tagged only when they are created.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you check your current Git version?

git --version

git --options

git --current

git --v

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which setting determines what pager is used when Git pages output?

core.pager

pager

page

core.page

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does commit object contain?

An SHAI name, a 40 character string that uniquely identify the commit object.

Reference to parent commit objects

A set of files, representing the state of a project at a given point of time.

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?