Git & GitHub Quiz 2 Codingnest

Git & GitHub Quiz 2 Codingnest

Professional Development

12 Qs

quiz-placeholder

Similar activities

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

Volume 2

Volume 2

Professional Development

17 Qs

Introduction

Introduction

Professional Development

10 Qs

Friday Fun

Friday Fun

Professional Development

10 Qs

Day3 - Python STT

Day3 - Python STT

Professional Development

10 Qs

DGBL Hard version

DGBL Hard version

6th Grade - Professional Development

10 Qs

TCH_Induction

TCH_Induction

Professional Development

12 Qs

GIT

GIT

Professional Development

15 Qs

Git & GitHub Quiz 2 Codingnest

Git & GitHub Quiz 2 Codingnest

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Coding Nest

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the command to initialize a new Git repository?

git start

git new

git create

git init

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to stage all changes in the working directory for the next commit?

git add .

git push origin master

git stage .

git commit -m 'message'

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the command to create a new branch in Git?

git checkout -b

git commit -m

git branch

git add

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you clone a repository from GitHub to your local machine?

git pull

git commit

git add

git clone

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to view the commit history in Git?

git status

git history

git show

git log

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of 'git pull' command?

To delete all local changes and update the remote repository

To fetch and download content from a remote repository and immediately update the local repository to match that content.

To merge changes from the local repository to the remote repository

To create a new branch in the local repository

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the command to discard changes in the working directory in Git?

git commit -m 'Discard changes'

git checkout -- .

git revert HEAD

git reset --hard

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?