Search Header Logo

Unit Testing and GitLab CI Quiz

Authored by Koray Incki

Information Technology (IT)

Professional Development

Unit Testing and GitLab CI Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main purpose of unit tests in software development?

Test the entire software system

Verify individual functions or methods

Run integration tests

Replace manual testing entirely

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a GitLab CI pipeline configuration, how can you run multiple jobs concurrently?

Define multiple scripts in one job

Place the jobs in the same pipeline stage

Assign different runners to each job

Use a separate .parallel stage

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why are unit tests placed at the bottom of the testing pyramid?

They are the slowest to run

They are least important

They test system-wide integrations

They are fast, numerous, and provide quick feedback

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is parallel job execution beneficial in GitLab pipelines?

It speeds up the pipeline by running multiple jobs simultaneously

It simplifies debugging

It merges jobs into one large job

It reduces the total number of jobs

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you remove the stages configuration from a GitLab pipeline?

The pipeline automatically stops working

GitLab applies default stages (.pre, build, test, deploy, .post)

Jobs run randomly

The pipeline fails

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a JUnit report in a CI pipeline?

A console-only output

A detailed XML test results file

A performance monitoring tool

A manual testing guide

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following artifact configuration achieve in a GitLab CI job?

Generates a JUnit test report

Publishes artifacts only if the job passes

Publishes the artifact regardless of job success or failure

Publishes a JUnit test report

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?