ITPEC FE Subject A October 2024 Question 37
In unit testing, which of the following activities is part of white box testing?
Explanation
Condition testing — a white box technique whose test cases come from the conditions written in the code.
White box testing uses knowledge of the program's internal structure: test cases are chosen to exercise its statements, its decisions (branches) and the individual conditions inside them. Condition testing makes each condition in a decision evaluate to both true and false, which can only be designed by reading the code. Black box testing designs cases from the specification alone.
Answer (b)
Why not others:
- •(a) Boundary value analysis — a black box technique: picks values at and just around the edges of the valid input ranges in the specification
- •(c) Equivalence partitioning — a black box technique: divides inputs into classes the specification treats alike and tests one representative of each
- •(d) Orthogonal array testing — a black box technique: chooses a balanced subset of combinations of input parameters
Key rule: Coverage criteria (statement, decision, condition, multiple-condition) are white box; techniques built from the specification (equivalence classes, boundary values, decision tables, orthogonal arrays) are black box.
System Development Technology · AI-written, may contain errors
This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.