Exam-style question
Try this first
A solution uses two Boolean inputs, A and B. What is the best way to check that its output is correct for every possible input combination?.
- A.Test only when A and B are both true
- B.Test only when A and B are both false
- C.Test one randomly selected input combination
- D.Test all four combinations of A and B
Answer and explanation
Concise answer
Test all four combinations of A and B
Why this is correct
Two Boolean inputs have 2 × 2 = 4 possible combinations. Testing every combination checks the complete input space for this simple problem.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
