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? Select all statements that are true.

Choose one option.
Show answer & explanation
Answer: A. Testing with full knowledge of internal structure and code logic

White-box testing (also called glass-box or structural testing) is performed with complete knowledge of the internal code structure and logic. Testers deliberately analyze code paths, branches, conditions, and logic flow to design test cases that exercise specific internal behaviors. Option B describes black-box testing (external behavior without code knowledge), and Option D describes user acceptance testing by non-technical users, both contrary to white-box principles.

Step-by-step Derivation:
White-box testing definition breakdown: (1) It requires internal code visibility and knowledge ✓ Option A is TRUE. (2) It requires analyzing internal paths and logic ✓ Option C is TRUE. (3) Option B describes black-box testing (external perspective only) ✗ FALSE. (4) Option D describes user/acceptance testing by end users without technical code analysis ✗ FALSE. Correct answers: A and C.