Search Header Logo

White-Box Testing Quiz

Authored by drkiruthika drkruthika

Computers

12th Grade

Used 3+ times

White-Box Testing Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary goal of white-box testing?

To test the functionality of the software without knowledge of its internal structure

To test the internal logic and structure of the software

To verify that the software meets the user requirements

To evaluate the performance of the software

Answer explanation

To test the internal logic and structure of the software

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does cyclomatic complexity measure?

The number of lines of code in a program

The number of distinct paths through the program's control flow graph

The complexity of the software's user interface

The number of variables used in the program

Answer explanation

Cyclomatic complexity measures the number of distinct paths through the program's control flow graph, not the number of lines of code, variables, or the software's user interface.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a form of logic coverage in white-box testing?

Statement Coverage

Branch Coverage

Condition Coverage

User Acceptance Testing

Answer explanation

User Acceptance Testing is NOT a form of logic coverage in white-box testing, as it is a form of black-box testing where end-users validate the system's functionality against their requirements.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a reason why white-box testing is necessary?

It is less expensive than black-box testing.

It provides complete test coverage by ensuring that all code paths are executed.

It is used only after black-box testing is completed.

It is suitable for testing the software's usability.

Answer explanation

White-box testing is necessary because it provides complete test coverage by ensuring that all code paths are executed.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the "decision/condition coverage" criterion ensure?

Each condition in a decision is evaluated to both true and false.

Each decision is evaluated to both true and false, and each condition within decisions is also evaluated.

Each statement in the code is executed.

All paths through the program are tested.

Answer explanation

The 'decision/condition coverage' criterion ensures that each decision is evaluated to both true and false, and each condition within decisions is also evaluated.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does statement coverage aim to achieve?

Ensure that all branches in the control flow graph are tested.

Ensure that every line of code is executed at least once.

Ensure that all possible conditions are tested.

Ensure that all functional requirements are met.

Answer explanation

Ensure that every line of code is executed at least once.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which testing technique ensures that every edge in the control flow graph is traversed at least once?

Statement Coverage

Branch Coverage

Path Coverage

Condition Coverage

Answer explanation

Path Coverage ensures that every edge in the control flow graph is traversed at least once.

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?