Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

devOpsPlay

Total questions: 11

Worksheet time: 5mins

Name
Class
Date
1.

What type of version control software does Git is?

a)

Local VCS

b)

Global VCS

c)

Distributed VCS

d)

Centralized CVS

2.

Which Git state does stores code snapshot permanently?

a)

Staging

b)

Modify

c)

Commit

d)

None of the above

3.

Which sub-directory of Git contains all necessary repository files?

a)

.localstore

b)

.git

c)

.config

d)

.conf

4.

Which command makes any directory a repository on local machine?

a)

git start

b)

git create

c)

git initialize

d)

git init

5.

How can you save all your changes without commiting in git?

a)

it is not possible to save changes without commiting.

b)

using git copy feature

c)

using git stash

d)

using 'git save temporary' command

6.

Both below statements are valid commit command:


> git commit --m "new git commit"

> git commit -message "new git commit"

a)

True

b)

False

7.

Arrange the actions chronologically that should be taken to resolve conflict


a) commit the changes and push them

b) Add these files by the command git add .

c) Edit the files to fix the conflicting changes

d) Identify the files that have caused the conflict.

a)

a b c d

b)

c d b a

c)

d c b a

d)

d b a c

8.

Command to stage all changes done to files

a)

git commit .

b)

git add .

c)

git commit -a -m " code fixes"

d)

git push

9.

Which file can you configure to ensure that certain file types are never committed to the local Git repository?

a)

ignore.git

b)

gitignore.txt

c)

.gitignore

d)

git.ignore

10.

Command to switch between branches.

a)

git checkout <branch name>

b)

git checkout -b <branch name>

c)

git branch -d <branch name>

d)

git branch -m <branch name>

11.

What is ‘git status’ is used for?

a)

To get the information about latest commit on remote branches.

b)

To know the status of remote server (server is up and working or down).

c)

To get list of all latest commits under current branch.

d)

To show the difference between the working directory and the index,