Recall & Review
beginner
What is white-box testing?
White-box testing is a software testing method where the tester has full knowledge of the internal structure, design, and implementation of the software being tested.
Click to reveal answer
intermediate
Name a common white-box testing technique that checks every possible path through the code.
Path testing is a white-box technique that aims to execute all possible paths in the program to find errors in the logic or flow.
Click to reveal answer
beginner
What does statement coverage measure in white-box testing?
Statement coverage measures the percentage of executable statements in the code that have been executed by the test cases.
Click to reveal answer
intermediate
Explain branch coverage in white-box testing.
Branch coverage ensures that each possible branch (true/false) from every decision point in the code is executed at least once during testing.
Click to reveal answer
beginner
Why is white-box testing important in software development?
White-box testing helps find hidden errors, improves code quality, verifies internal operations, and ensures that all parts of the code work as expected.
Click to reveal answer
Which of the following is a white-box testing technique?
✗ Incorrect
Statement coverage is a white-box testing technique that measures how many statements are executed.
What does branch coverage test in white-box testing?
✗ Incorrect
Branch coverage ensures that both true and false branches of each decision are tested.
Which is NOT a goal of white-box testing?
✗ Incorrect
Testing without knowing the code is black-box testing, not white-box testing.
Path testing aims to:
✗ Incorrect
Path testing tries to cover every possible route through the program's code.
Which coverage type measures the percentage of executed statements?
✗ Incorrect
Statement coverage measures how many statements have been run during testing.
Describe the main white-box testing techniques and what each aims to achieve.
Think about how testers check code lines, decisions, and paths.
You got /4 concepts.
Explain why white-box testing is important and how it differs from black-box testing.
Consider what testers know about the software in each method.
You got /4 concepts.