Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Changing code without changing behavior is refactoring in CI

Answer»

Changing CODE WITHOUT changing BEHAVIOR is refactoring
(1)Version Control
(2)Refactoring
(3)None of the OPTIONS
(4)Both the options
Answer:- Answer of above question is (2)Refactoring

2.

______________ is a continuous integration server.

Answer»

______________ is a CONTINUOUS INTEGRATION SERVER.
(1)MAVEN
(2)Ansible
(3)Teamcity
(4)Nexus
Answer:-(3)Teamcity

3.

Functional testing can be automated using Jenkins.

Answer»

Functional TESTING can be automated USING Jenkins.
(1)True
(2)False

Answer of above QUESTION is given below
(1)True

4.

Complexity of a code is determined based on _________________.

Answer»

Complexity of a CODE is determined based on _________________.
(1)Cyclomatic Complexity Number
(2)Efferent Coupling
(3)TIME taken to PERFORM inspection
(4)Number of source LINES of code
Answer:- Answer of above questions is (1)Cyclomatic Complexity Number

5.

Control flow graph is used to calculate _______

Answer»

Control FLOW GRAPH is used to CALCULATE _______.
(1)Afferent Coupling
(2)Efferent Coupling
(3)Cyclomatic Complexity
Answer:- Answer of above question is (3)Cyclomatic Complexity

6.

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

Answer»

Time TAKEN to fix a BROKEN build is measured USING ________________.
(1)Build repair rate
(2)SUCCESSFUL build rate
(3)Total Build time
Answer:- Answer of above question is (1)Build repair rate

7.

Release builds can be triggered ___________.

Answer»

Release builds can be triggered ___________.
(1)event-driven
(2)by POLLING for changes
(3)On-demand
(4)All of the options
Answer- Answer is All of the options

8.

stream based version control helps to apply bug fixes to many versions

Answer»

stream based VERSION control helps to apply bug FIXES to many versions of the application
(1)False
(2)TRUE
ANSWER:- Answer is True

9.

Select a CI tool based on it's _________________________.

Answer» SELECT a CI tool BASED on it's _________________________.
(1)Both the options
(2)Resistability
(3)None of the options
(4)Extendability
Answer:-(4)Extendability
10.

Commiting a code change, when the inspection fails , is perfectly fine

Answer»

Commiting a code CHANGE, when the inspection fails , is PERFECTLY FINE as the code logic is WORKING fine anyway
(1)FALSE
(2)True
Answer:-False

11.

_______________ is a measure of incoming dependencies.

Answer»

_______________ is a measure of incoming dependencies.
(1)CYCLOMATIC Complexity
(2)Afferent Coupling
(3)EFFERENT Coupling
Answer:- Answer of above question is (2)Afferent Coupling

12.

What is the short summary of Continuous Integration

Answer»

We can define Continuous INTEGRATION as to BUILD SOFTWARE and take it through as many tests as possible with every change.

13.

What are the reasons for a build to fail

Answer»

What are the reasons for a BUILD to fail ?
(1)None of the OPTIONS
(2)Both the options
(3)PIPELINE break
(4)Build break
Answer:-Answer of above QUESTIONS is (4)Build break

14.

Which of the tools is not used for establishing a pipeline workflow ?

Answer»

Which of the tools is not used for ESTABLISHING a pipeline workflow ?
(1)Travis CI
(2)MAVEN
(3)JENKINS
(4)Teamcity

Answer:- Answer of above question is (2)Maven

15.

Different Steps Include in Continuous Integration

Answer»

Below are the different steps involves in CI.
When we add more steps in CI that means more STABILITY.
(1)Compilation
(2)Unit Tests
(3)Code Quality Gates
(4)Integration Tests
(5)DEPLOYMENT
(6)Chain Tests

16.

Teamcity is a ______________________.

Answer»

Teamcity is a ______________________.
BUILD Tool
Build SCHEDULER
Answer:-Answer of above question is GIVEN below
Build Scheduler

17.

IBM Clearcase is a __________ version control

Answer»

IBM Clearcase is a __________ VERSION CONTROL
(1)DISTRIBUTED
(2)Streambased
Answer is Streambased

18.

Release branches are created for resolving merge conflicts

Answer» RELEASE branches are created for RESOLVING merge conflicts
True
FALSE
Answer:- This is false
19.

Pipeline break and build break is one and the same

Answer»

Pipeline break and build break is ONE and the same.
(1)False
(2)True
Answer of above QUESTION is False

20.

CCMetrics is a measure of number of non-linearly independent paths

Answer» CCMETRICS is a MEASURE of NUMBER of non-linearly INDEPENDENT paths.
True
FALSE
Answer;- Above is False
21.

Version Control Branch Types in Continuous Integration

Answer»

Below are the 3 branch type in Continuous Integration
(1)Main branch known as TRUNK, mainline or master.
(2)Release branch, used for bug fixes POST USER release.
(3)Work Branch, used by developers for DEVELOPMENT changes.

22.

Continuous Integration Questions Answers

Answer»

Below are the 20 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)