Mastering Git: Test Your Knowledge

Mastering Git: Test Your Knowledge

Professional Development

7 Qs

quiz-placeholder

Similar activities

Git & Github

Git & Github

Professional Development

10 Qs

Git quiz 1

Git quiz 1

Professional Development

10 Qs

Git intro

Git intro

Professional Development

8 Qs

Git quizz

Git quizz

Professional Development

10 Qs

git basics

git basics

Professional Development

10 Qs

DevNet Express

DevNet Express

10th Grade - Professional Development

11 Qs

Chadev AI Coding Assistant

Chadev AI Coding Assistant

Professional Development

11 Qs

Mastering Git & GitHub Basics

Mastering Git & GitHub Basics

Professional Development

10 Qs

Mastering Git: Test Your Knowledge

Mastering Git: Test Your Knowledge

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Sindhu Manivannan

Used 3+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Maddy is starting a new project and wants to set up a version control system for his code. What command should he use to create a new Git repository?

git start

git init

git new

git create

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Sai is working on a software project and wants to ensure that certain files, like temporary logs and build artifacts, are not tracked by Git. She needs to understand the purpose of the .gitignore file.

To store configuration settings for Git.

To list all files in the repository.

To track changes in ignored files.

The purpose of the .gitignore file is to specify files and directories that Git should ignore.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Aanya is working on a group project and has made several changes to the code. She wants to ensure that her changes are saved in the local repository before sharing them with her team. What command should she use?

The 'git commit' command deletes files from the repository.

The 'git commit' command updates the remote repository directly.

The 'git commit' command lists all changes made in the repository.

The 'git commit' command saves changes to the local repository.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Arsheya is learning Git for her project. What does the 'HEAD' refer to in Git?

HEAD is a command to initialize a new repository.

HEAD refers to the last commit made in the repository.

HEAD is a pointer to the current branch or commit in Git.

HEAD is a backup of the previous branch.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Vikram is working on a software project and wants to add a new feature without affecting the main codebase. What is a branch in Git and why is it useful?

A branch in Git is a separate line of development that allows for isolated changes, making it useful for managing features, fixes, and experiments without impacting the main codebase.

A branch in Git is a backup of the main codebase.

A branch in Git is a way to delete old code.

A branch in Git is a tool for merging multiple repositories.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Raj is working on a project and wants to review the changes made to the code over time. What command would he use to view the commit history?

git show

git status

git log

git history

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Indhu is learning about version control and wants to understand the difference between a local repository and a remote repository.

A local repository is for public access; a remote repository is for private access.

A local repository is a backup; a remote repository is the main version.

A local repository is on a server; a remote repository is on your machine.

A local repository is on your machine; a remote repository is on a server.