Search Header Logo

Git quizz

Authored by Javier Moreno

Computers

Professional Development

Used 8+ times

Git quizz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What HEAD contains?

It contains all the data related to the current list of tracked files

It contains the identifier of the current commit or a reference to a branch HEAD

It contains all kind of metadata used to understand the repository structure

It keeps important configuration elements, like the name of the suer

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What "staging" means?

It is the current area of work, with the files of the project

It is the set of files that will form part of the next commit

It is current position in the history log for the current branch

It is the content of the .git/ directory, with the information collected by git

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why applying a `git commit` command directly after a `git init` will fail?

Because there is no file to commit

Because commit requires files to be staged

Because you first need to checkout the branch

Because you always need to configure the user name and email for each repo

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command will help you to understand the evolution of the code in the repo?

view

history

log

list

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command will you choose if you want to start experimenting in refactoring your code?

clone

checkout -b

checkout

split

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command will mix the content of two branches in the local repo?

merge

mix

pull

push

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What command will mix the content of two branches in separate repos? (choose 2)

merge

mix

pull

push

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?