IPA FE Subject A sample Question 40
A question IPA Japan published in 基本情報技術者試験 科目A サンプル問題 問40, translated into English. ITPEC is based on the same exams.
Which of the following is a technique for testing whether a module functions as described in the specifications without considering its internal structure?
Explanation
Black box test — the module is treated as a box whose inside is not looked at: test cases come from the specifications, and the outputs are checked against them.
Test cases are designed from the external specifications with techniques such as equivalence partitioning and boundary value analysis, and each input’s output is compared with what the specifications require. Because the code is not examined, it finds missing or wrongly implemented functions, but not redundant code that the specifications never call for.
Answer (b)
Why not others:
- •(a) Top-down test and (c) Bottom-up test — orders of integration testing: from the top modules down using stubs, or from the bottom modules up using drivers; neither says how test cases are designed
- •(d) White box test — designs test cases from the internal structure (instruction, branch or condition coverage), the opposite of what is described
Key rule: Black box = from the specifications, inside ignored; white box = from the code’s structure; top-down and bottom-up are the order in which modules are integrated.
System Development Technology · AI-written, may contain errors
This question comes from the past questions IPA Japan publishes, translated into English by ITPEC Practice. ITPEC Practice is an independent study tool and is not affiliated with IPA or ITPEC. See the original paper (PDF) or Report an issue.