Jenkins Quiz

Jenkins Quiz

Jenkins Quiz : This Jenkins Intermediate Quiz contains set of Top 30 Jenkins Quiz which will help to clear any Mcqs exam which is designed for Intermediate .

Topics covered related to Jenkins, what is jenkins, jenkins software, cicd jenkins, jenkins cicd, ci cd with jenkins, cicd with jenkins, ci jenkins, jenkins ci, build jenkins, enterprise jenkins, jenkins enterprise, jenkins building, ci with jenkins, jenkins ci cd pipeline, jenkins server, ci cd jenkins, continuous integration with jenkins, continuous integration jenkins, jenkins | devops, jenkins ci cd and so on.

  1. Code coverage analysis is CPU and Memory intensive process which will slow down build completion time. How do you configure code coverage analysis in this scenario?

ANS-  Run code coverage analysis in separate build job after unit and integration test successful.

 

  1.  Which plugin is used to run the selenium test cases in Jenkins?

ANS- Hudson Selenium

 

  1.  What are the minimum steps needed to configure unit testing in Jenkins?
  1. Add built step to invoke ant and include the
  2. Add post-build action to publish the test res
  3. Both the above
  4. Add HTML scarping and include T

Ans- Both the above 

 

  1.  How do you configure Jenkins to utilize more memory for running performance tests?

ANS-  mention the memory to be used in MAVEN_OPTS field in the build job.

 

  1. How do you configure Jenkins to skip the tests in Junit?

ANS- @ignore

 

  1.  What does the code coverage report provide?

ANS-  displays the calculated coverage percentage based on the unit tests written.

 

  1.  Which one of the following has maven project?

ANS-  coverage.xml

 

  1.  Checkstyle is used for checking?

ANS- Coding standards coding practices code complexity metric

 

  1.  Which plugin is used for getting  code coverage for .net projects?

      

 a)mstest

b)vstest

c)cobertura

d)a and b

 

ANS-  a and b  ( mstest and vstest )

 

  1.  Name the correct plugin that is used for running static code analysis?

 

  a)checkstyle  Maven plugin

b)FindBugs plugin

  1. c) a and b
  2. d) none of the above

 

ANS-  a and b ( checkstyle Maven plugin and Findbugs plugin)

 

  1.  You are installing the plugins and Jenkins throw error that is not able to download the plugins since Jenkin is behind firewall. How do you download the plugins?

ANS- set http proxy connection details

 

  1.  Which of the below is used to configure JDK and ANT installations in build job?

ANS- configure system

 

  1.  How do you run groovy scripts in Jenkin server?

ANS-  use script console

 

  1.  The Jenkins job are internally stored in which format?

ANS- JSON format

 

  1.  PRQA plugin is used for?

ANS- static code analysis

 

  1.  What plugin is used for binary repository?

ANS- artifactory

 

  1.  You need to have the maven build previous builds , compile code and unit test and generate jar file, what needs to be configured in Jenkins to achieve this?

ANS- add clean package for maven build

 

  1.  How to execute windows batch command from  a job?

ANS-  Go to the build section and click on Add Build step? Execute windows batch command.

 

  1.  You need to schedule build to run every minute of every hour of every day. How do you set up?

ANS- add “******” in Poll SCM option in build triggers

 

  1.  To shut down Jenkins cleanly , you  can use the _______________ link , which prevents any new build from being started?

ANS-  prepare for shutdown

 

SET 2 Jenkins Quiz

  1.  Which of the following commands is used to make the build fail immediately if any tests fail in ANT

ANS-  haltonfailure

  1. Various test techniques are

ANS- Mocking

  1.  Performance tests run by?
  1. a) Simulating load on your application
  2. b) Simulates action of client applications
  3. c) measuring the response time as  the number of
  4. d) all of the above

 

ANS- all of the above

 

  1. How do you configure Jenkins to skip the test in Junit?

ANS- @ignore

 

  1.  How will you automate your unit and integration tests by specifying a goal?

ANS- mvn verify

 

  1.  Build history metrics plugins calculates metrics for all the builds once installed
  1. Mean time to failure (MTTF)
  2. Mean time to Recovery (MTTR)
  3. Standard deviation of build times
  1. A & B
  2. A & C
  3. B & C
  4. All of the above

ANS- all of the above

 

  1.  Static Analysis collector plugin does not provide?

ANS- Total number of bugs and warnings

 

  1.  How do you generate findbugs reports?
  1. Mvn site
  2. Mvn site findbugs
  3. Mvn findbugs findbugs
  4. Both a and c

 

ANS- both  a and c

 

  1.  Checkstyle,Findbugs,PMD are all ?

ANS- Code Analysis Tool

 

  1.  What does the code coverage report provide?

ANS- displays the calculated coverage percentage based on the unit tests written.

 

  1.  How do you run groovy scripts in Jenkins server?

ANS- use Script Console

 

  1.  You need to execute a shell script (/usr/bin/prepare-env) just before a Linux slave is started. How do you achieve this?

ANS- use the E prefix  Start Slave Command __ configuration option on the slave configuration

 

  1.  What does of executors indicate for Jenkins configuration?

ANS-  Total number of concurrent jobs executions that can take place on the Jenkins machine

 

  1.  For serial executions of Job , it needs to connect each ?

ANS-  upstream job to  a downstream one with <invoke>

 

  1.  What plugins can be used for binary repository?

ANS- Artifactory

 

  1.  The Jenkins jobs are internally stored in which format?

ANS- JSON

 

  1.  The Jenkins logs are stored bydefault in?

ANS- /var/log/Jenkins.log

 

  1.  You are asked to obtain the config.xml of a folder from a script or HTTP client  using the Jenkins remote API. The folder exists at the root of a Jenkins master. Which URL pattern is correct?

ANS- root/job/myFolder/config.xml

 

  1.  There are dev, main and release branches followed in the development team. You need to setup built from all branches for CI, you will?

ANS- set branches to build as blank(**)

 

  1.  How to execute windows batch command from  a job?

ANS-  Go to the build section and click on Add build step? Execute windows batch command