☑ MCQ PRACTICE

DevOps Unit 3

Practice objective questions for quick revision and examination preparation. Try answering each question before revealing the answer.

📚 DevOps
📖 Unit 3
🎯 MCQs

DevOps - Unit-3

1
Which of the following is a distributed version control system?
ACVS
BGit
CSubversion (SVN)
DRCS
Correct Answer Git
2
Git was created by
ADennis Ritchie
BJames Gosling
CLinus Torvalds
DGuido van Rossum
Correct Answer Linus Torvalds
3
Git was first released in the year
A1995
B2005
C2000
D2012
Correct Answer 2005
4
Which of the following is a centralised version control system?
AGit
BMercurial
CBazaar
DSubversion (SVN)
Correct Answer Subversion (SVN)
5
Which command copies a remote repository to the local machine?
Agit push
Bgit commit
Cgit branch
Dgit clone
Correct Answer git clone
6
Which command records staged changes in the local repository?
Agit commit
Bgit push
Cgit clone
Dgit fetch
Correct Answer git commit
7
Which command sends local commits to a remote repository?
Agit push
Bgit pull
Cgit add
Dgit init
Correct Answer git push
8
Which command fetches changes from a remote repository and merges them?
Agit push
Bgit stash
Cgit pull
Dgit tag
Correct Answer git pull
9
Which command is used to list or create branches?
Agit clone
Bgit remote
Cgit branch
Dgit blame
Correct Answer git branch
10
A pull request is
Aa command to download a repository
Ba way to delete a branch
Ca build job in Jenkins
Da request to merge changes from one branch into another after review
Correct Answer a request to merge changes from one branch into another after review
11
Gerrit is
Aa build server
Ba testing framework
Ca web-based code review tool for Git
Da container platform
Correct Answer a web-based code review tool for Git
12
GitLab is
Aa JavaScript test framework
Ba web-based DevOps platform with Git repository management and CI/CD
Can operating system
Da database engine
Correct Answer a web-based DevOps platform with Git repository management and CI/CD
13
Which of the following is NOT a hosted Git service?
AGitHub
BBitbucket
CJenkins
DGitLab
Correct Answer Jenkins
14
Docker containers differ from virtual machines because they
Ainclude a full guest operating system
Bcan only run on one machine
Ccannot run applications
Dshare the host operating system kernel
Correct Answer share the host operating system kernel
15
Common ways to authenticate with a Git server are
ASSH keys and HTTPS credentials
Bfax and e-mail
CCD-ROM and floppy disk
Dno authentication is possible
Correct Answer SSH keys and HTTPS credentials
16
The .gitignore file is used to
Astore user passwords
Blist all commits
Clist files and patterns that Git should ignore
Dconfigure the build server
Correct Answer list files and patterns that Git should ignore
17
A merge conflict occurs when
Aa repository has no commits
Ba branch is deleted
Cthe same part of a file is changed differently in two branches
Da file is added to .gitignore
Correct Answer the same part of a file is changed differently in two branches
18
Which of these version control systems was released first?
AGit
BMercurial
CSubversion
DCVS
Correct Answer CVS
19
The main need for source code control is to
Acompile code faster
Bencrypt source files
Cremove the need for testing
Dtrack history, support collaboration and allow rollback of changes
Correct Answer track history, support collaboration and allow rollback of changes
20
The Git staging area is also called the
Astash
Bremote
Cindex
Dtag
Correct Answer index
21
In Git, HEAD points to
Athe first commit ever made
Bthe remote server
Cthe .gitignore file
Dthe current branch or latest commit checked out
Correct Answer the current branch or latest commit checked out
22
Which command shows the commit history?
Agit log
Bgit status
Cgit diff
Dgit add
Correct Answer git log
23
In Gerrit, a change is merged into the repository after
Ait is deleted
Bit is deployed to production
Cit is compiled twice
Dit has been reviewed and approved
Correct Answer it has been reviewed and approved
24
Forking a repository on a hosting service creates
Aa new branch only
Ba backup on a local disk
Ca new Git server
Da personal copy of that repository
Correct Answer a personal copy of that repository
25
Which of the following best describes Git branching?
ACopying files to another computer
BIndependent lines of development within a repository
CDeleting old commits
DEncrypting the repository
Correct Answer Independent lines of development within a repository

Fill in the Blanks

26 Git was created by Linus __________.
Correct Answer Torvalds
27 The command git __________ copies a remote repository to the local machine.
Correct Answer clone
28 Changes are placed in the __________ area before they are committed.
Correct Answer staging
29 A __________ request asks for the changes in a branch to be reviewed and merged.
Correct Answer pull
30 __________ is a web-based code review tool for Git.
Correct Answer Gerrit
31 __________ is a web-based DevOps platform offering Git repositories and CI/CD.
Correct Answer GitLab
32 The __________ file lists patterns of files that Git should ignore.
Correct Answer .gitignore
33 A merge __________ occurs when the same part of a file is changed in two branches.
Correct Answer conflict
34 SVN stands for __________.
Correct Answer Subversion
35 Git is a __________ version control system.
Correct Answer distributed
36 __________ is a pointer to the latest commit of the currently checked out branch.
Correct Answer HEAD
37 The command git __________ uploads local commits to a remote repository.
Correct Answer push
38 __________ is a platform used to package applications into containers.
Correct Answer Docker
39 Git servers can authenticate users with __________ keys.
Correct Answer SSH
40 A __________ is a personal copy of another user's repository on a hosting service.
Correct Answer fork
← Back to All MCQs