☑ MCQ PRACTICE

DevOps Unit 4

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

📚 DevOps
📖 Unit 4
🎯 MCQs

DevOps - Unit-4

1
Jenkins is written in which programming language?
APython
BC++
CPHP
DJava
Correct Answer Java
2
Jenkins was originally known as
ABamboo
BTravis
CMaven
DHudson
Correct Answer Hudson
3
Jenkins stores its configuration, jobs and build data in
Athe /bin directory
Bthe browser cache
Cthe Windows registry only
Dthe JENKINS_HOME directory
Correct Answer the JENKINS_HOME directory
4
Machines on which Jenkins runs build jobs, apart from the master, are called
Aplugins
Bbuild slaves (agents)
Ctriggers
Dartifacts
Correct Answer build slaves (agents)
5
Jenkins functionality is extended by installing
Acompilers
Bfirewalls
Coperating systems
Dplugins
Correct Answer plugins
6
The 'Poll SCM' trigger in Jenkins
Adeletes old builds
Bperiodically checks the repository for changes
Cinstalls plugins
Drestarts the server
Correct Answer periodically checks the repository for changes
7
A webhook trigger in Jenkins is
Aa periodic timer only
Bpush-based: the repository notifies Jenkins when a change happens
Ca manual button
Da type of build slave
Correct Answer push-based: the repository notifies Jenkins when a change happens
8
Job chaining means
Arunning a job twice
Bone job is triggered automatically after another job completes
Cdeleting a job
Dcopying a job to another server
Correct Answer one job is triggered automatically after another job completes
9
A Jenkinsfile is used to
Adefine a build pipeline as code
Bstore test results
Cinstall Jenkins
Dlist Jenkins users
Correct Answer define a build pipeline as code
10
Jenkins pipelines can be written in which two syntaxes?
AStatic and Dynamic
BSimple and Complex
CLocal and Remote
DDeclarative and Scripted
Correct Answer Declarative and Scripted
11
A Maven project is described by which file?
Abuild.xml
Bpom.xml
CMakefile
Dbuild.gradle
Correct Answer pom.xml
12
The Ant build tool uses which build file?
Abuild.xml
Bpom.xml
CMakefile
Dpackage.json
Correct Answer build.xml
13
The make utility reads instructions from a
Apom.xml
BMakefile
CJenkinsfile
DDockerfile
Correct Answer Makefile
14
Gradle build scripts are usually written in a file named
Abuild.gradle
Bpom.xml
Cbuild.xml
DMakefile
Correct Answer build.gradle
15
Which tool is widely used to manage build dependencies for Java projects?
ASelenium
BGerrit
CPuppet
DMaven
Correct Answer Maven
16
Building by dependency order means
Abuilding components in random order
Bbuilding only the last component
Cskipping dependencies
Dbuilding the components that others depend on first
Correct Answer building the components that others depend on first
17
In Maven, which build phase packages the compiled code into a JAR or WAR?
Acompile
Bpackage
Cvalidate
Dclean
Correct Answer package
18
Which of the following is NOT a CI/build server?
ABamboo
BTeamCity
CPuppet
DGoCD
Correct Answer Puppet
19
SonarQube is used for
Aversion control
Bcontainer orchestration
Cnetwork monitoring
Dcontinuous inspection of code quality
Correct Answer continuous inspection of code quality
20
Infrastructure as code for a build server means
Abuying more hardware
Bwriting user manuals
Cdefining its configuration through scripts and code instead of manual setup
Dinstalling it only by hand
Correct Answer defining its configuration through scripts and code instead of manual setup
21
The default port on which Jenkins runs is
A80
B8080
C3306
D5000
Correct Answer 8080
22
Which tool is commonly used to measure code coverage of Java tests?
AJaCoCo
BDocker
CAnsible
DChef
Correct Answer JaCoCo
23
To run, Jenkins requires which software on the host server?
APython only
BRuby only
CJava (JRE/JDK)
DA web browser only
Correct Answer Java (JRE/JDK)
24
The output of a build, such as a JAR or WAR file, is called a(n)
Atrigger
Bplugin
Cslave
Dartifact
Correct Answer artifact
25
The main role of a continuous integration server is to
Awrite code for developers
Bdesign the user interface
Cautomatically build and test code whenever changes are made
Dmanage employee records
Correct Answer automatically build and test code whenever changes are made

Fill in the Blanks

26 Jenkins is written in the __________ programming language.
Correct Answer Java
27 Jenkins was originally called __________.
Correct Answer Hudson
28 Jenkins stores its configuration, jobs and builds in its __________ directory (JENKINS_HOME).
Correct Answer home
29 Jenkins runs by default on port __________.
Correct Answer 8080
30 A Maven project is described by the __________.xml file.
Correct Answer pom
31 A pipeline in Jenkins is defined in a file called the __________.
Correct Answer Jenkinsfile
32 Jenkins machines that execute jobs are called build __________ (agents).
Correct Answer slaves
33 The __________ SCM trigger checks the repository for changes at regular intervals.
Correct Answer Poll
34 Jenkins functionality is extended through __________.
Correct Answer plugins
35 __________ is a tool for continuous inspection of code quality.
Correct Answer SonarQube
36 The Ant build script is named build.__________.
Correct Answer xml
37 The make utility reads its instructions from a __________.
Correct Answer Makefile
38 In Maven, the __________ phase runs the unit tests after compilation.
Correct Answer test
39 The file produced by a build, such as a JAR or WAR, is called an __________.
Correct Answer artifact
40 Jenkins pipelines can be written in Declarative or __________ syntax.
Correct Answer Scripted
← Back to All MCQs