☑ MCQ PRACTICE

DevOps Unit 5

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

📚 DevOps
📖 Unit 5
🎯 MCQs

DevOps - Unit-5

1
Selenium is mainly used for
Acompiling Java programs
Bautomating web browser testing
Cmanaging databases
Dmonitoring servers
Correct Answer automating web browser testing
2
Which Selenium component allows tests to run in parallel on multiple machines?
ASelenium IDE
BSelenium RC
CSelenium Grid
DSelenium Maven
Correct Answer Selenium Grid
3
Selenium IDE is
Aa build server
Ba container platform
Ca browser-based tool for recording and playing back tests
Da version control system
Correct Answer a browser-based tool for recording and playing back tests
4
Which of the following is a JavaScript testing framework?
AAnsible
BJasmine
CGerrit
DMaven
Correct Answer Jasmine
5
The test-driven development (TDD) cycle is
APlan, Do, Check
BBuild, Test, Deploy
CRed, Green, Refactor
DFetch, Merge, Push
Correct Answer Red, Green, Refactor
6
In TDD, the first step is to
Awrite the final code
Bwrite a failing test
Cdeploy to production
Drefactor the code
Correct Answer write a failing test
7
REPL stands for
ARun-Execute-Process-Link
BRead-Eval-Print Loop
CRead-Edit-Publish-Load
DRecord-Evaluate-Play-Log
Correct Answer Read-Eval-Print Loop
8
A main advantage of test automation is
Ano need to write any test
Bfast and repeatable regression testing
Cit always finds every bug
Dit removes the need for developers
Correct Answer fast and repeatable regression testing
9
A common disadvantage of test automation is
Ahigh initial cost and effort to maintain test scripts
Bit cannot be repeated
Cit is slower than manual testing for every run
Dit needs no tools
Correct Answer high initial cost and effort to maintain test scripts
10
Integration testing checks
Aonly a single function
Bthe colour of the user interface
Cthe interaction between modules or components
Dthe hardware performance
Correct Answer the interaction between modules or components
11
Re-running tests after a change to ensure nothing else is broken is called
Asmoke testing only
Busability testing
Cregression testing
Dalpha testing
Correct Answer regression testing
12
Puppet uses which architecture?
APeer-to-peer only
BMaster and agent
CStandalone only
DMainframe terminal
Correct Answer Master and agent
13
Puppet configuration files are called
Amanifests
Bplaybooks
Crecipes
Dpillars
Correct Answer manifests
14
Ansible connects to managed machines mainly using
ATelnet only
BFTP
CSSH
DA special agent only
Correct Answer SSH
15
Ansible playbooks are written in
AXML
BYAML
CJSON only
DJava
Correct Answer YAML
16
In Chef, configuration instructions are written in units called
Amanifests
Bplaybooks
Crecipes
Dminions
Correct Answer recipes
17
Chef's configuration language is based on
AJava
BRuby
CC
DCOBOL
Correct Answer Ruby
18
In SaltStack, the managed nodes are called
Aagents only
Bslaves
Cminions
Dworkers
Correct Answer minions
19
A Docker container is
Aa running instance of a Docker image
Ba text file of instructions
Ca type of hypervisor
Da source code repository
Correct Answer a running instance of a Docker image
20
A Dockerfile is
Aa running container
Ba text file with instructions to build a Docker image
Ca virtual machine
Da Git branch
Correct Answer a text file with instructions to build a Docker image
21
A hypervisor is software that
Acompiles source code
Breviews code
Cmonitors website traffic
Dcreates and runs virtual machines
Correct Answer creates and runs virtual machines
22
Which code is executed at the client side in a web browser?
AJava servlet
BSQL stored procedure
CJavaScript
DPHP
Correct Answer JavaScript
23
Replacing a real backend service with a simulated one during testing is called
Amigrating
Bmocking
Cforking
Dcompiling
Correct Answer mocking
24
A key benefit of test-driven development is
Ano need for requirements
Bno need for refactoring
Cfaster hardware
Dbetter design and fewer defects
Correct Answer better design and fewer defects
25
Docker Hub is
Aa Git server
Ba build server
Ca test framework
Da registry for storing and sharing container images
Correct Answer a registry for storing and sharing container images

Fill in the Blanks

26 TDD follows the Red, Green and __________ cycle.
Correct Answer Refactor
27 REPL stands for Read-Eval-Print __________.
Correct Answer Loop
28 Selenium __________ allows tests to run in parallel on multiple machines.
Correct Answer Grid
29 Selenium __________ is a browser-based record and playback tool.
Correct Answer IDE
30 __________ testing re-runs tests after a change to make sure nothing else is broken.
Correct Answer Regression
31 Puppet uses a master and __________ architecture.
Correct Answer agent
32 Ansible configuration files are called __________ and are written in YAML.
Correct Answer playbooks
33 Ansible is __________ less because it needs no agent on managed machines.
Correct Answer agent
34 Chef groups its configuration instructions into recipes and __________.
Correct Answer cookbooks
35 In SaltStack, the managed nodes are called __________.
Correct Answer minions
36 A __________ contains the instructions to build a Docker image.
Correct Answer Dockerfile
37 A __________ creates and runs virtual machines.
Correct Answer hypervisor
38 Jasmine and Mocha are __________ testing frameworks.
Correct Answer JavaScript
39 A running instance of a Docker image is called a __________.
Correct Answer container
40 Puppet configuration code is stored in files called __________.
Correct Answer manifests
← Back to All MCQs