Back to the 2020 paper

Module 3: Software Design & Metrics

20202m

Cyclomatic complexity method comes under which testing method?

(i) Yellow box
(ii) White box
(iii) Grey box
(iv) Black box

Worked SolutionAI Assisted

Solution

Correct Answer: (ii) White box

Explanation

Cyclomatic Complexity V(G)=E−N+2PV(G) = E - N + 2P (McCabe, 1976) measures number of linearly independent paths.

  • It requires source code / control flow graph → hence White-box / Structural / Glass-box testing.
  • Used for basis path testing, to determine number of test cases.

Other categories:

  • Black box - without code knowledge (BVA, Equivalence Partitioning)
  • Grey box - partial knowledge
  • Yellow box is not a standard term (distractor).

Answer: (ii) White box (also called Glass box / Structural testing)

Similar questions

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.