Black-box Techniques Questions with Answers

19 practice questions on Black-box Techniques (Software Testing & QA) with answers and step-by-step solutions. Try 10 samples below, then practise all 19 free in the AptiNest app.

Sample questions

Question 1Easy

What is the purpose of equivalence partitioning?

  1. Test every possible input value exhaustively
  2. Test only the values at each boundary
  3. Check the structure of the code paths
  4. 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

  1. Group similar inputs.
  2. Pick one per group.
  3. 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:

  1. Reads and tests every statement as a rule
  2. Must be the developer
  3. Tests based on requirements without knowing the internal code
  4. 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

  1. Black-box testing treats the system as closed and tests it from outside.
  2. The tester designs tests from the requirements or specification.
  3. The tester does not need the internal code to design these tests.
  4. 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:

  1. Strict formulas for coverage in every release on every build
  2. The tester's experience of where defects are likely
  3. Automatic code analysis
  4. 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

  1. Error guessing is an experience-based technique.
  2. The tester uses past experience to guess where defects are likely.
  3. Such guesses target risky areas such as empty input or boundaries.
  4. 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?

  1. The fastest valid path through the whole system today
  2. The code structure and its branches
  3. The internal database and its tables
  4. 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

  1. Invalid inputs.
  2. System should reject.
  3. 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:

  1. Cover all combinations of two parameters with fewer tests
  2. Test each module together with its paired module
  3. Test every full combination of all parameters
  4. 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

  1. Parameters interact.
  2. Cover all pairs.
  3. 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?

  1. 4
  2. 3
  3. 6
  4. 8

Answer: C. 6

Explanation

Three values per boundary: 9, 10, 11 and 19, 20, 21, giving 6.

Step-by-step solution

  1. Two boundaries.
  2. Three values each.
  3. 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?

  1. 3
  2. 2
  3. 4
  4. 5

Answer: A. 3

Explanation

Below 18 (invalid), 18-60 (valid), above 60 (invalid).

Step-by-step solution

  1. Valid ages are 18 to 60 inclusive.
  2. The classes are below 18 (invalid), 18 to 60 (valid), and above 60 (invalid).
  3. That gives three classes.
  4. 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?

  1. 8
  2. 4
  3. 16
  4. 32

Answer: C. 16

Explanation

Each binary condition doubles the rules: 2 to the power 4 is 16.

Step-by-step solution

  1. Two outcomes each.
  2. 2 x 2 x 2 x 2.
  3. 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?

  1. 4
  2. 3
  3. 6
  4. 8

Answer: C. 6

Explanation

Values 9,10,11 and 19,20,21 give six.

Step-by-step solution

  1. Three-value boundary analysis tests the value below, at, and above each boundary.
  2. For 10 to 20, the lower boundary gives 9, 10, 11.
  3. The upper boundary gives 19, 20, 21, so the total is six values.
  4. 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?

  1. 9 and 3
  2. 27 and 9
  3. 27 and 27
  4. 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

  1. Full set is 3^3 = 27.
  2. Two parameters give 9 pairs.
  3. 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 →

Related topics

See all Software Testing & QA topics · All topics