BCS-ISEB
BH0-010 · Question #98
Given the following sample of pseudo code: Read A, B, C; If A > B then Print "Primary ratio is" & A / B; End If If A > C then Print "Secondary ration is" & A / C; End If. Which of the following test…
The correct answer is C. A = 10, B =5 and C = 2. See the full explanation below for the reasoning.
Question
Given the following sample of pseudo code:
Read A, B, C; If A > B then Print "Primary ratio is" & A / B; End If If A > C then Print "Secondary ration is" & A / C; End If. Which of the following test cases would achieve 100% statement coverage?
Options
- AA = 5, B = 10 and C = 2
- BA = 10, B = 10 and C = 10
- CA = 10, B =5 and C = 2
- DA = 2, B= 5 and C = 10
How the community answered
(28 responses)- A7% (2)
- B11% (3)
- C79% (22)
- D4% (1)
Community Discussion
No community discussion yet for this question.