CS FundamentalsHardTCS NQT · Infosys pattern

How many of the following are white-box (structural) testing techniques? 1. Branch (decision) coverage 2. Basis path testing 3. Boundary value analysis 4. Data-flow (def-use) testing

  1. A. Only one
  2. B. Only two
  3. C. Only three
  4. D. All four

Correct answer: C. Only three

Branch coverage, basis path testing and data-flow testing need the code's structure, so they are white-box (1, 2 and 4). Boundary value analysis works only from the input specification, so it is black-box. So three are white-box.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic