OA. free
Free
Accenture Core Computer Science Core Computer Science Medium

What is white-box testing?

Accenture technical mcq question, verified with a worked answer. Free to practise - no sign-up.

What is white-box testing? Choose the true statement.

Choose one option.
Show answer & explanation
Answer: A. Understanding and testing internal code structures, branches, and statements

White-box testing (also called glass-box or structural testing) involves testing with full knowledge of internal code structure, logic paths, branches, and statements. Option B describes black-box testing (no source code access). Options C and D are incorrect characterizations—white-box testing is a technical practice, not limited to marketing staff or aesthetics.

Step-by-step Derivation:
White-box testing definition: This is a testing methodology where testers have access to and understand the internal implementation details of the software. Key characteristics: (1) Tests internal logic and code paths, (2) Requires source code access, (3) Focuses on structural coverage (statements, branches, conditions), (4) Performed by developers/QA engineers. Option A directly matches this definition. Option B (black-box testing) is the opposite approach. Options C and D are distractors with no technical basis.