
White-Box Testing Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
drkiruthika drkruthika
Used 3+ times
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Computer health and safety

Quiz
•
11th Grade - Professi...
15 questions
Grade 12-Python selection&iteration

Quiz
•
11th - 12th Grade
16 questions
Wiltshire General Knowledge

Quiz
•
12th Grade
11 questions
CH 19 - Credibility

Quiz
•
9th - 12th Grade
10 questions
Software Development Life Cycle Quiz

Quiz
•
12th Grade
15 questions
Business Analysis, Project Management, Quality Assurance

Quiz
•
11th - 12th Grade
13 questions
Control Structures in Python

Quiz
•
11th - 12th Grade
14 questions
ISTQB FOUNDATION 4.0 | Tutorial 41

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade