Sample questions
Question 1Easy
What is the purpose of equivalence partitioning?
- Test every possible input value exhaustively
- Test only the values at each boundary
- Check the structure of the code paths
- Pick one value from each group treated alike
Answer: D. Pick one value from each group treated alike
Explanation
Inputs treated the same by the software are grouped, and one representative per group is tested.
Step-by-step solution
- Group similar inputs.
- Pick one per group.
- Fewer tests.
Why the other options are wrong
- A. That is exhaustive testing.
- B. That is boundary value analysis.
- C. That is white-box.
Question 2Easy
In black-box testing the tester:
- Reads and tests every statement as a rule
- Must be the developer
- Tests based on requirements without knowing the internal code
- Only tests the database schema
Answer: C. Tests based on requirements without knowing the internal code
Explanation
Test design uses inputs and expected outputs from the specification.
Step-by-step solution
- Black-box testing treats the system as closed and tests it from outside.
- The tester designs tests from the requirements or specification.
- The tester does not need the internal code to design these tests.
- So the answer is option C.
Why the other options are wrong
- A. Reading every statement is white-box testing.
- B. Black-box testers do not need to be the developer.
- D. Testing only the database schema is a narrow check, not black-box testing as defined.
Tip: Black-box: design from requirements and inputs and outputs, not the code.
Question 3Easy
Error guessing is a technique based on:
- Strict formulas for coverage in every release on every build
- The tester's experience of where defects are likely
- Automatic code analysis
- Random numbers only
Answer: B. The tester's experience of where defects are likely
Explanation
It is an experience-based technique.
Step-by-step solution
- Error guessing is an experience-based technique.
- The tester uses past experience to guess where defects are likely.
- Such guesses target risky areas such as empty input or boundaries.
- So the answer is option B.
Why the other options are wrong
- A. Strict coverage formulas are a structured technique, not error guessing.
- C. Automatic code analysis is a tool-based static check, not experience-based.
- D. Random numbers are random testing, not error guessing.
Tip: Error guessing draws on experience of where bugs usually hide.
Question 4Easy
What do you test with an invalid equivalence class?
- The fastest valid path through the whole system today
- The code structure and its branches
- The internal database and its tables
- How the system handles inputs it must reject
Answer: D. How the system handles inputs it must reject
Explanation
Invalid classes check error handling and validation messages.
Step-by-step solution
- Invalid inputs.
- System should reject.
- Check error handling.
Why the other options are wrong
- A. Valid classes cover normal paths.
- B. Structure is white-box.
- C. Black-box does not examine the database design.
Question 5Medium
Pairwise (all-pairs) testing is used to:
- Cover all combinations of two parameters with fewer tests
- Test each module together with its paired module
- Test every full combination of all parameters
- Pair a tester with a developer
Answer: A. Cover all combinations of two parameters with fewer tests
Explanation
Most defects come from the interaction of two parameters, so covering all pairs reduces test count dramatically.
Step-by-step solution
- Parameters interact.
- Cover all pairs.
- Fewer than full combinations.
Why the other options are wrong
- B. It is about parameter values, not modules.
- C. That is exhaustive combination testing.
- D. Pair programming is unrelated.
Question 6Medium
Using three-value BVA, how many test values are needed for a valid range 10 to 20?
- 4
- 3
- 6
- 8
Answer: C. 6
Explanation
Three values per boundary: 9, 10, 11 and 19, 20, 21, giving 6.
Step-by-step solution
- Two boundaries.
- Three values each.
- Six total.
Why the other options are wrong
- A. Four is two-value BVA.
- B. Three is too few for two boundaries.
- D. Eight is not required.
Question 7Medium
A field accepts ages 18 to 60 inclusive. How many equivalence classes are there?
- 3
- 2
- 4
- 5
Answer: A. 3
Explanation
Below 18 (invalid), 18-60 (valid), above 60 (invalid).
Step-by-step solution
- Valid ages are 18 to 60 inclusive.
- The classes are below 18 (invalid), 18 to 60 (valid), and above 60 (invalid).
- That gives three classes.
- So the answer is option A, 3.
Why the other options are wrong
- B. Two classes would leave out either the valid range or one invalid range.
- C. Four classes would need an extra split that the rule does not have.
- D. Five classes would split the invalid ranges further than needed.
Tip: For a range rule, count one valid class and two invalid classes outside it.
Question 8Medium
A decision table has 4 binary conditions. Without collapsing rules, how many rules (columns) are there?
- 8
- 4
- 16
- 32
Answer: C. 16
Explanation
Each binary condition doubles the rules: 2 to the power 4 is 16.
Step-by-step solution
- Two outcomes each.
- 2 x 2 x 2 x 2.
- 16.
Why the other options are wrong
- A. Eight is for three conditions.
- B. Four equals the number of conditions only.
- D. Thirty-two is for five.
Question 9Hard
A field accepts 10 to 20 inclusive. Using three-value boundary analysis, how many test values are needed?
- 4
- 3
- 6
- 8
Answer: C. 6
Explanation
Values 9,10,11 and 19,20,21 give six.
Step-by-step solution
- Three-value boundary analysis tests the value below, at, and above each boundary.
- For 10 to 20, the lower boundary gives 9, 10, 11.
- The upper boundary gives 19, 20, 21, so the total is six values.
- So the answer is option C, 6.
Why the other options are wrong
- A. Four values would test only one side of each boundary.
- B. Three values would cover only one boundary.
- D. Eight values would add extra values that the method does not need.
Tip: Three-value BVA: for each boundary, test one below, the boundary, and one above.
Question 10Hard
A form has 3 parameters with 3 values each. How many tests are needed for exhaustive combination, and what is the least number that could cover all pairs?
- 9 and 3
- 27 and 9
- 27 and 27
- 6 and 3
Answer: B. 27 and 9
Explanation
3 x 3 x 3 gives 27 combinations. All pairs of two parameters alone are 9, and an orthogonal array of 9 rows covers all pairs.
Step-by-step solution
- Full set is 3^3 = 27.
- Two parameters give 9 pairs.
- 9 tests can cover all pairs.
Why the other options are wrong
- A. 9 is not exhaustive.
- C. All-pairs needs fewer than 27.
- D. Nine is the minimum because two parameters already have 3 x 3 pairs.
Practise all 19 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →