CS FundamentalsHardTCS · Accenture · ISTQB-style

A password must be 8-16 characters long and contain at least one digit. Using weak equivalence partitioning, where all valid classes can share one test but each invalid class gets its own test, what is the minimum number of tests?

  1. A. 3
  2. B. 6
  3. C. 4
  4. D. 2

Correct answer: C. 4

Valid: length 8-16 with a digit (1 test). Invalid: shorter than 8, longer than 16, no digit (3 tests, one invalid class each so a failure is attributable). Total 4.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic