nerdexam
ISTQB

CTFL_001 · Question #281

CTFL_001 Question #281: Real Exam Question with Answer & Explanation

Sign in or unlock CTFL_001 to reveal the answer and full explanation for question #281. The question stem and answer options stay visible for context.

Question

Consider the following pseudo code: 1. Begin 2. Input X, Y 3. If X > Y 4. __Print (X, `is greater than', Y) 5. Else 6. __Print (Y, is greater than or equal to', X) 7. EndIf 8. End What is the minimum number of test cases required to guarantee both 100% statement coverage and 100% decision coverage?

Options

  • AStatement coverage = 3, Decision coverage = 3
  • BStatement coverage = 2, Decision coverage = 2
  • CStatement coverage = 1, Decision coverage = 2
  • DStatement coverage = 2, Decision coverage = 1

Unlock CTFL_001 to see the answer

You've previewed enough free CTFL_001 questions. Unlock CTFL_001 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full CTFL_001 Practice