Differences
  • Placement 360 CourseExplore
  • Software testing day - 42

    Last Updated :
    Discuss
    Comments

    Question 1

    What is the primary purpose of a Jenkins Freestyle project?

    • A

      To integrate with Selenium for automated testing

    • B

      To create and build jobs without the need for coding or scripting

    • C

       To manage Jenkins plugins for performance optimization

    • D

      To deploy applications to cloud services automatically

    Question 2

    In which step of creating a Freestyle project in Jenkins do you specify the source code repository?

    • A

      Step 2: Create a New Freestyle Project

    • B

      Step 3: Configure the Project

    • C

      Step 5: Add Credentials for GitHub

    • D

      Step 7: Configure Maven Build

    Question 3

    Which of the following is required to configure Jenkins to access a GitHub repository?

    • A

      Jenkins API Key

    • B

      GitHub Personal Access Token

    • C

      SSH Key or Username and Password for GitHub

    • D

      Jenkins CLI tool

    Question 4

    What Maven goal should be entered in Jenkins to build a project using Maven in a Freestyle project?

    • A

      mvn install

    • B

      clean package

    • C

      mvn build

    • D

      mvn compile

    Question 5

    How does Jenkins trigger the build process for a Freestyle project?

    • A

      By manually clicking on the "Build Now" button

    • B

      Automatically after every successful login

    • C

      By integrating with a continuous integration system like GitLab

    • D

      Through an external webhook

    Question 6

    Which of the following tools or frameworks is specifically used in Jenkins to automate the CI/CD pipeline?

    • A

      GitLab CI

    • B

      Jenkinsfile

    • C

      Dockerfile

    • D

      Kubernetes YAML

    Question 7

    In the CI/CD pipeline configuration, where do you define the stages of the build process, such as Checkout Code, Build, and Deploy?

    • A

      In the Jenkins dashboard

    • B

      In the General section

    • C

      In the Pipeline section

    • D

      In the Build Triggers section

    Question 8

    What is the purpose of the "sh" command in the Jenkins pipeline script?

    • To execute shell commands such as Maven build commands

    • To define environment variables for the pipeline

    •  To send notifications upon completion

    • To store artifacts in a Nexus repository

    Question 9

    What does the "stage" command in the Jenkins pipeline script help with?

    • A

      It defines a build environment for the pipeline

    • B

      It marks the beginning of a distinct phase in the CI/CD process

    • C

      It configures GitHub repository access

    • D

      It sets up credentials for the build

    Question 10

    In the context of Jenkins pipeline, what is the function of the "sshagent" command in the deploy stage?

    • A

      To securely store deployment credentials

    • B

       To execute a remote deployment using SSH

    • C

      To monitor the deployment process

    • D

      To clone the GitHub repository before deployment

    There are 10 questions to complete.

    Take a part in the ongoing discussion