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?
- A. 3
- B. 6
- C. 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A web form has exactly two parameters: browser (Chrome, Firefox, Safari) and OS (Windows, macOS, Linux). How many tests does all-pairs…
- A team has run the same 300 regression tests every release for two years. They now find almost no bugs, yet customers report new ones in…
- A product passes every test and has almost no defects, yet users reject it because it does not solve their actual workflow. Which testing…
- Risk scores are likelihood x impact, each rated 1-5. Feature A: 4 and 2. Feature B: 2 and 5. Feature C: 3 and 3. Feature D: 5 and 1. In…
- Running a regression suite manually takes 40 hours per cycle. Automating it costs 300 hours up front; afterwards each cycle needs 2 hours…
- In standard terminology, a programmer misreads the specification (1), which leads to a wrong comparison operator in the code (2), which…