0
0
Software Engineeringknowledge~5 mins

White-box testing techniques in Software Engineering - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AStatement coverage
BUsability testing
CBlack-box testing
DBeta testing
What does branch coverage test in white-box testing?
AEach decision point's true and false outcomes
BAll possible paths through the code
CUser interface elements
DPerformance under load
Which is NOT a goal of white-box testing?
ACheck internal code logic
BTest software without knowing code
CFind hidden errors
DImprove code quality
Path testing aims to:
ATest only the user interface
BTest software performance
CCheck database connections
DExecute all possible paths in the code
Which coverage type measures the percentage of executed statements?
ABranch coverage
BPath coverage
CStatement coverage
DFunction coverage
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.