0% found this document useful (0 votes)
4K views12 pages

Continuous Integration Answers

The document contains 25 multiple choice questions related to continuous integration (CI). It tests knowledge on CI tools, practices, and concepts. Some key points covered include: - Git is a distributed version control system while Subversion and Mercurial are centralized. - The first step in a CI build is typically running unit tests. - Artifacts, stages, and unit testing are important parts of a CI pipeline. - Practices like committing frequently and running fast builds help enable CI. - Tools like Jenkins, Nexus, and Maven can be used to establish a CI pipeline but Chef is not required. The document quizzes the reader on different aspects of setting up, implementing, and

Uploaded by

sathish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4K views12 pages

Continuous Integration Answers

The document contains 25 multiple choice questions related to continuous integration (CI). It tests knowledge on CI tools, practices, and concepts. Some key points covered include: - Git is a distributed version control system while Subversion and Mercurial are centralized. - The first step in a CI build is typically running unit tests. - Artifacts, stages, and unit testing are important parts of a CI pipeline. - Practices like committing frequently and running fast builds help enable CI. - Tools like Jenkins, Nexus, and Maven can be used to establish a CI pipeline but Chef is not required. The document quizzes the reader on different aspects of setting up, implementing, and

Uploaded by

sathish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Below are the 20 odd questions for CI or Continuous Integration

(1)----- is a .Net build tool.


(i)NAnt
(ii)Ant
(iii)Maven

(2)Git, Mercurial and Subversion are centralized version control tools.


(i)False
(ii)True

(3)Jabber is a :
(i)Messaging plugin
(ii)Deployment plugin
(iii)Build plugin

(4)CI pipeline consists of ______________.


(i)Items
(ii)Stages
(iii)Artifacts
(iv)Commitments
(v)Tickets

(5)Which is the first code analysis to be executed ?


(i)style check
(ii)code coverage
(iii)unit test

(6)Trunk is also known as __________________.


(i)Feature Branch
(ii)Mainline
(iii)Codeline
(iv)Work Branch

(7)Work Branch is also known as_______________________.


(i)Mainline
(ii)Trunk
(iii)None of the options
(iv)Codeline
(8)Private builds can be triggered automatically.
(i)False
(ii)True

(9)Git is a ___________________________ version control system.


(i)Centralized
(ii)Distributed
(iii)Local
(iv)None of the options

(10)CCMetrics is used to identify _______________________.


(i)Coupling factor
(ii)Incoming dependencies
(iii)Code Complexity
(iv)Outgoing dependencies

(11)In a normal scenario, software from ____________ is deployed to production.


(i)All of the options
(ii)Release branch
(iii)Work branch
(iv)Master branch

(12)Which is not a CI practice ?


(i)Run fast builds
(ii)Deploy to production
(iii)Stage Builds
(iv)Commit frequently

(13)It is a proven fact that reducing the CCN of code is known to reduce the number of errors
or bugs in the code.
(i)False
(ii)True

(14)Private builds are executed after moving the changes to version control.
(i)True
(ii)False
(15)Efferent Coupling is a measure of ____________________.
(i)Code Complexity
(ii)Outgoing dependencies
(iii)Incoming dependencies

(16)Build can be triggered by a version control tool.


(i)True
(ii)False

(17)Activities that are part of continuous integration______________.


(i)Tests
(ii)Code Build
(iii)Inspection
(iv)All of the Options
(v)Version Control

(18)Which is NOT a benefit of CI ?


(i)Issues can be identified and addressed quickly
(ii)The integration process is faster
(iii)Bugs and defects no longer occur
(iv)Productivity increases

(19)Does CI pipeline need to have all the software development functionalities integrated in
place ?
(1)False
(2)True

(20)stream based version control helps to apply bug fixes to many versions of the application.
(i)False
(ii)True

(21)Commiting a code change, when the inspection fails , is perfectly fine as the code logic is
working fine anyway
(i)False
(ii)True

(22)Arrange in order- A. Running Unit Test B.Running Static Code Check C.Check for Code
Coverage D. Build Package
(i)BACD
(ii)ABDC
(iii)ACBD
(iv)BADC

(23)Which of the following is an artifact repository ?


(i)Matrix
(ii)Ansible
(iii)Maven
(iv)Nexus

(24)Which of these is not a valid build trigger ?


(i)manual trigger
(ii)parameterized trigger
(iii)downstream trigger
(iv)version conrol trigger

(25)Which of the tools is not mandated for integration in a CI pipeline ?


(i)Terraform
(ii)Chef
(iii)Maven
(iv)Selenium

Answers
(1)(i)
(2)(i)
(3)(i)
(4)(ii)
(5)(iii)
(6)(ii)
(7)(iv)
(8)(i)
(9)(ii)
(10)(iii)
(11)(iv)
(12)(ii)
(13)(i)
(14)(ii)
(15)(ii)
(16)(i)
(17)(iv)
(18)(iii)
(19)(i)
(20)(ii)
(21)(i)
(22)(i)
(23)(iv)

Which of the following statement is not correct about Jenkins?


Choose the correct option from below list
(1)Jenkins is secure and doesn't need any special security provisioning.
(2)Jenkins has various plugins to enable an effective CI environment.
(3)Jenkins can be configured for taking backups.
(4)Jenkins need to have enough disk space to support the build storage.

Answer:-(1)Jenkins is secure and doesn't need any special security provisioning.

Feature branching is used to _.


Work on user stories — Correct
Release branches are created for resolving merge conflicts.
False — Correct
Which is NOT a benefit of CI ?
Bugs and defects no longer occur — Correct
Activities that are part of continuous integration.
All of the Options — Correct
Which is not a CI practice ?
Deploy to production — Correct
Which is NOT true about continuous integration ?
Involves moving code in large amounts — Correct
Work Branch is also known as_.
Codeline — Correct
Git is a _ version control system.
Distributed — Correct

Time taken to fix a broken build is measured using __.


Build repair rate — Correct
__ is a .Net build tool.
NAnt — Correct
Pipeline break and build break is one and the same.
False — Correct
Capablility of your build system to handle an increase in the amount of code that it integrates and analyzes is
known as .
Build scalability — Correct
Complexity of a code is determined based on _.
Cyclomatic Complexity Number — Correct
_ is a measure of incoming dependencies.
Apperent Coupling — Correct
Private builds are executed after moving the changes to version control.
False — Correct
Build can be triggered by a version control tool.
True — Correct

Release builds can be triggered _.


On-demand — Correct
is a continuous integration server.
Maven — Correct
Jabber is a :
Messaging plugin — Correct
Staged builds include _.
Secondary builds
Trunk is also known as __.
Mainline — Correct
Practice of developers integrating changes directly in the feature or work branches and commiting the changes
at the end to the mainline is known as _.
Continuous Integration — Correct
Faster feedback can be received by _.
Staging builds
Commiting a code change, when the inspection fails, is perfectly fine as the code logic is working fine anyway.
False — Correct
__ helps in differentiating the environments.
Configuration files — Correct
Which is the first code analysis to be executed ?
unit test
Control flow graph is used to calculate _.
Cyclomatic Complexity — Correct
CI pipeline consists of .
Artifacts
Which of the tools is not used for establishing a pipeline workflow ?
Travis CI — Wrong
Teamcity
Arrange in order- A. Running Unit Test B.Running Static Code Check C.Check for Code Coverage D. Build
Package
Git, Mercurial and Subversion are centralized version control tools.
False — Correct
How are component dependencies injected in a workflow ?
Build package first and then perform the remaining tasks
Staged builds include _.
Commit builds
CI servers use the _ expression to poll for changes.
CRON — Correct
Efferent Coupling is a measure of .
Outgoing dependencies — Correct
Teamcity is a .
Build Tool — Correct
Component test is executed as part of _.
Integration Build — Correct
CCMetrics is used to identify _.
Code Complexity — Correct
Which of the following is an artifact repository ?
Maven — Wrong
Feature toggle can be used in the following scenarios .
Disabling or Hiding a feature — Wrong
Code changes can be hidden,enabled or disabled using _.
Feature Toggles — Correct
_ is a code coverage tool.
Cobertura — Correct
Which of these is not mandated for a CI pipeline ?
Application code
Does CI pipeline need to have all the software development functionalities integrated in place ?
False — Correct
Which of the tools is not mandated for integration in a CI pipeline ?
Chef — Wrong
Which of the following is an artifact repository that can be configured as a plugin for Jenkins
(a) Nexus
(b) Matrix
(c) Ansible
(D) Maven
Answer :- (A) NEXUS.
Release branches are created for resolving merge conflicts.- True

How are component dependencies injected in a workflow ?


Build package first and then perform the remaining tasks — Wrong

Code changes can be hidden,enabled or disabled using _.


Feature Toggles — Wrong

The following options are mandated for a CI pipeline, except – Application code is incorrect

(1)Git, Mercurial and Subversion are centralized version control tools.


(a)False
(b)True
Correct Answer of the above question is : (a)False
(2)Jabber is a :
(a)Messaging plugin
(b)Deployment plugin
(c)Build plugin
Correct Answer of the above question is : (a)Messaging plugin
(3)Select a CI tool based on its __.
(a)None of the options
(b)Resistability
(c)Extendability
(d)Both the options
Correct Answer of the above question is :(c)Extendability
(4)CI pipeline consists of __.
(a)Items
(b)Stages
(c)Artifacts
(d)Commitments
(e)Tickets
Correct Answer of the above question is : (b)Stages
(5)Which is the first code analysis to be executed ?
(a)style check
(b)code coverage
(c)unit test
Correct Answer of the above question is : (c)unit test
(6)Which of the following is an artifact repository ?
(a)Matrix
(b)Ansible
(c)Maven
(d)Nexus
Correct Answer of the above question is : (d)Nexus
(7)Which of these is not a valid build trigger ?
(a)manual trigger
(b)parameterized trigger
(c)downstream trigger
(d)version conrol trigger
Correct Answer of the above question is : (b)parameterized trigger
(8)Work Branch is also known as_______________________.
(a)Mainline
(b)Trunk
(c)None of the options
(d)Codeline
Correct Answer of the above question is : (d)Codeline
(9)CCMetrics is used to identify ___________.
(a)Coupling factor
(b)Incoming dependencies
(c)Code Complexity
(d)Outgoing dependencies
Correct Answer of the above question is : (c)Code Complexity
(10)It is a proven fact that reducing the CCN of code is known to reduce the number of errors or
bugs in the code.
(a)False
(b)True
Correct Answer of the above question is : (a)False
(11)Private builds are executed after moving the changes to version control.
(a)True
(b)False
Correct Answer of the above question is : (b)False
(12)Efferent Coupling is a measure of ________.
(a)Code Complexity
(b)Outgoing dependencies
(c)Incoming dependencies
Correct Answer of the above question is : (b)Outgoing dependencies
(13)Build can be triggered by a version control tool.
(a)True
(b)False
Correct Answer of the above question is : (a)True
(14)Does CI pipeline need to have all the software development functionalities integrated in place ?
(1)False
(2)True
Correct Answer of the above question is : (1)False
(15)stream based version control helps to apply bug fixes to many versions of the application.
(a)False
(b)True
Correct Answer of the above question is : (b)True
(16)Commiting a code change, when the inspection fails , is perfectly fine as the code logic is
working fine anyway
(a)False
(b)True
Correct Answer of the above question is : (a)False
(17)Arrange in order- A. Running Unit Test B.Running Static Code Check C.Check for Code
Coverage D. Build Package
(a)BACD
(b)ABDC
(c)ACBD
(d)BADC
Correct Answer of the above question is : (a)BACD
(18)—– is a .Net build tool.
(a)NAnt
(b)Ant
(c)Maven
Correct Answer of the above question is : (a)NAnt
(19)Which of the tools is not mandated for integration in a CI pipeline ?
(a)Terraform
(b)Chef
(c)Maven
(d)Selenium
Correct Answer of the above question is : (c)Maven
(20)It is not required to assign an owner for a branch.
(a)False
(b)True
Correct Answer of the above question is : (a)False
(21)The following options are mandated for a CI pipeline, except _.
(a)Functional testing
(b)Infrastructure as Code
(c)Configuration code
(d)Application code
Correct Answer of the above question is : (d)Application code
(22)____ helps in differentiating the environments.
(a)Build scripts
(b)Configuration files
(c)Both the options
Correct Answer of the above question is : (c)Both the options
(23)_ plays a crucial role to help reduce the build duration.
(a)Pipeline metrics
(b)Both build and pipeline metrics
(c)None of the options
(d)Build metrics
Correct Answer of the above question is : (d)Build metrics
(24)It is possible to clone the central repository locally.
(a)True
(b)False
Correct Answer of the above question is : (a)True
(25)Which is NOT true about continuous integration ?
(a)Involves moving code in frequent intervals
(b)Involves moving code in large amounts
(c)Involves moving code from development to test environment
(d)Most effectively done through automation
Correct Answer of the above question is : (b)Involves moving code in large amounts
(27)Code compilation is an essential part of _.
(a)Build Tool
(b)Version control
(c)Testing Tool
Correct Answer of the above question is : (a)Build Tool
(28)The following are CI tools, except __.
(a)Travis CI
(b)Teamcity
(c)Maven
(d)Jenkins
Correct Answer of the above question is : (b)Teamcity
(29)In a normal scenario, software from _ is deployed to production.
(a)All of the options
(b)Release branch
(c)Work branch
(d)Master branch
Correct Answer of the above question is : (d)Master branch
(30)Which is not a CI practice ?
(a)Run fast builds
(b)Deploy to production
(c)Stage Builds
(d)Commit frequently
Correct Answer of the above question is : (b)Deploy to production
(31)How are component dependencies injected in a workflow ?
(a)Run unit test and build package
(b)Parallel trigger components and build package
(c)Build package first and then perform the remaining tasks
(d)Use sequence triggers
Correct Answer of the above question is : (c)Build package first and then perform the remaining
tasks
(32)Trunk is also known as _______.
(a)Codeline
(b)Feature Branch
(c)Work Branch
(d)Mainline
Correct Answer of the above question is : (d)Mainline
(33)_ is an independent line of work.
(a)Branch
(b)None of the options
(c)Code
Correct Answer of the above question is : (a)Branch
(34)Git, Mercurial, and Subversion are centralized version control tools.
(a)False
(b)True
Correct Answer of the above question is : (a)False
(35)Private builds can be triggered automatically.
(a)False
(b)True
Correct Answer of the above question is : (a)False
(36)Git is a ________________ version control system.
(a)Centralized
(b)Distributed
(c)Local
(d)None of the options
Correct Answer of the above question is : (b)Distributed
(37)Complexity of a code is determined based on .
(a)Cyclomatic Complexity Number
(b)Number of source lines of code
(c)Efferent Coupling
(d)Time taken to perform inspection
Correct Answer of the above question is : (a)Cyclomatic Complexity Number
(38)____ is a code coverage tool.
(a)NUnit
(b)Cobertura
(c)None of the options
(d)Jenkins
Correct Answer of the above question is : (b)Cobertura
(39)Trunk is also known as ______.
(a)Feature Branch
(b)Mainline
(c)Codeline
(d)Work Branch
Correct Answer of the above question is : (b)Mainline
(40)Subversion (SVN) is a distributed version control system.
(a)False
(b)True
Correct Answer of the above question is : (a)False
(41)Release branches are created for solving bugs detected after the application is released to the
user.
(a)False
(b)True
Correct Answer of the above question is : (b)True
(42)It is perfectly acceptable to commit a code change, though the code inspection has failed.
(a)True
(b)False
Correct Answer of the above question is : (a)True
(43)The minimum number of test inputs required to test the execution of a program is determined
by __.
(a)Coupling
(b)CCN
(c)None of the options
Correct Answer of the above question is : (c)None of the options
(44)Jabber is a :
(a)Build plugin
(b)Messaging plugin
(c)Deployment plugin
Correct Answer of the above question is : (b)Messaging plugin
(45)Activities that are part of continuous integration______________.
(a)Tests
(b)Code Build
(c)Inspection
(d)All of the Options
(v)Version Control
Correct Answer of the above question is : (d)All of the Options
(46)Which is NOT a benefit of CI ?
(a)Issues can be identified and addressed quickly
(b)The integration process is faster
(c)Bugs and defects no longer occur
(d)Productivity increases
Correct Answer of the above question is : (c)Bugs and defects no longer occur

You might also like