wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Github Quiz

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What does 'm' in git commit -m" " means?

a)

message

b)

mode

c)

merge

d)

modify

2.

What is Git primarily used for?

a)

Designing websites

b)

Managing databases

c)

Version control

d)

Project deployment

3.

What does git clone do?

a)

Duplicates a file

b)

Creates a backup

c)

Forks a repository

d)

Copies a repository to your local machine

4.

What does git push do?

a)

Installs Git

b)

Uploads local commits to a remote repository

c)

Saves changes locally

d)

Updates your local repo with GitHub

5.

What does git pull do?

a)

Pushes code to GitHub

b)

Deletes files

c)

Commits staged changes

d)

Fetches and merges code from a remote repo

6.

Which of these commands creates a new branch in Git?

a)

git new-branch

b)

git branch

c)

git checkout

d)

git init

7.

What does git add . do?

a)

Adds all files to a GitHub repo

b)

Adds all changes to the staging area

c)

Adds a comment

d)

Adds a new branch

8.

What is GitHub mostly used for?

a)

Editing images

b)

Hosting and collaborating on code

c)

Designing websites

d)

Managing databases

9.

What is the first step when working with a new project from GitHub?

a)

git push

b)

git init

c)

git clone

d)

git status

10.

What is repository in github?

a)

A chatroom

b)

A code storage space

c)

A programming language

d)

A server

11.

What does README.md file typically contain?

a)

Code

b)

Project Information

c)

Images

d)

Git commands

12.

What is git bash?

a)

A party for developers

b)

A code editor

c)

A terminal to run git commands

d)

A mobile app

13.

What does git config --global user.name "your name" do?

a)

Changes your username

b)

Delets a file

c)

Sets your git username

d)

Clones a repository

14.

Which is the default branch in github?

a)

Master

b)

Main

c)

Both

d)

None

15.

Can you use git without github

a)

Yes

b)

No

c)

Only with Internet

d)

Only on MAC