TOP 50+ GIT MCQ Interview Questions & Answers (2023)

πŸŒπŸ“™ GIT MCQ interview Quiz Online Test 2023

Git MCQs (Multiple Choice Questions) with Answers Practice test, you can practice and test your knowledge to help you get the job.




















What is Git used for?

a) Version control

b) File compression

c) Image editing

d) Video streaming

Answer: a) Version control


What is the default branch name in Git?

a) master

b) trunk

c) main

d) branch

Answer: a) master


How do you create a new branch in Git?

a) git new branch

b) git create branch

c) git branch branch_name

d) git add branch branch_name

Answer: c) git branch branch_name


How do you switch to an existing branch in Git?

a) git switch branch

b) git change branch

c) git checkout branch_name

d) git go to branch branch_name

Answer: c) git checkout branch_name


How do you merge one branch into another in Git?

a) git merge branch1 into branch2

b) git combine branch1 with branch2

c) git merge branch1 branch2

d) git merge branch2

Answer: d) git merge branch2


What is Git stash?

a) a command to save changes in a new branch

b) a command to temporarily save changes without creating a new branch

c) a command to discard changes

d) a command to permanently save changes in a new branch

Answer: b) a command to temporarily save changes without creating a new branch


What is the command to clone a remote repository?

a) git clone repository_url

b) git copy repository_url

c) git fetch repository_url

d) git download repository_url

Answer: a) git clone repository_url


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

a) git log

b) git history

c) git commits

d) git view

Answer: a) git log


What is Git pull?

a) a command to push changes to a remote repository

b) a command to update the local repository with changes from a remote repository

c) a command to discard changes

d) a command to temporarily save changes without creating a new branch

Answer: b) a command to update the local repository with changes from a remote repository


What is Git push?

a) a command to update the local repository with changes from a remote repository

b) a command to push changes to a remote repository

c) a command to discard changes

d) a command to temporarily save changes without creating a new branch

Answer: b) a command to push changes to a remote repository

#gitπŸ™ #github #computerscience #javascript #Mcqquiz #students #free #Online #learning #coding #Training #test #interview #job 

SEE || MORE || MCQ || Questions

Education Funda

Stay Connected 😊

Thanks

Comments

Popular posts from this blog

Satellite communication Mcq with answers

Top Oracle Database MCQ (Questions & Answers)

IOS (MCQ) interview Multiple Choice Questions Answers in 2023