Skip to content

平成30年度 秋期 ITパスポート試験 問44

This question's explanation and your answers so far.

問44
頻出度★★★

プログラムのテスト手法に関して,次の記述中の a,b に入れる字句の適切な組合せはどれか。 プログラムの内部構造に着目してテストケースを作成する技法を a と呼び,b において活用される。

出典 平成30年度 秋期 ITパスポート試験 問44
解説

問 44

  • Incorrectア

    Treating a as black-box testing is wrong. Black-box testing does not look at the internal structure and focuses only on the input and output specifications, which is the exact opposite of the statement's focus on internal structure. Also, system testing in b is not the stage where techniques focusing on the internal structure are mainly used.

  • Incorrectイ

    Treating a as black-box testing is wrong. It is white-box testing that focuses on the internal structure, whereas black-box testing works from the specification without regard to the internals, so it does not match the statement. The unit testing in b is appropriate, but since a is wrong, this option is incorrect.

  • Incorrectウ

    The white-box testing in a is correct, but treating b as system testing is wrong. White-box testing is a technique that verifies the logic inside a module, so it is used in unit testing at the module level, not in system testing that targets the whole system.

  • エ

    正解 a is the technique of designing test cases by focusing on the internal structure of a program (control flow, branches, conditions, etc.), which is white-box testing. White-box testing checks whether every code path and branch is covered, so it is used in the unit-testing stage that verifies the logic inside a module. Therefore the combination a = white-box testing, b = unit testing holds, and the correct answer is エ.

ここがポイント
  • Grasp the contrast: white-box testing designs test cases by focusing on a program's internal structure (control flow, branches, conditions), while black-box testing ignores the internals and focuses on the input and output specifications.
  • The purpose of white-box testing is to verify the logic inside a module, so in the development process it is used in the unit-testing stage that is carried out at the module level.
用語

Your answers