BCS-ISEB
ISEB-SWT2 · Question #104
ISEB-SWT2 Question #104: Real Exam Question with Answer & Explanation
Sign in or unlock ISEB-SWT2 to reveal the answer and full explanation for question #104. The question stem and answer options stay visible for context.
Question
Given the following sample of pseudo code: 01 Input number of male rabbits 02 Input number of female rabbits 03 If male rabbits > 0 and female rabbits > 0 then 04 Input Do you want to breed (Yes / No) 05 If breed = o? 05 If breed = ?o 06 Print deep male and female rabbits apart!? 06 Print deep male and female rabbits apart! 07 End if 08 End If. Which of the following test cases will ensure that statement ?6?is executed?
Options
- Amale rabbits = 1, female rabbits = 1, breed = Yes male rabbits = 1, female rabbits = 1, breed = Yes?
- Bmale rabbits = 1, female rabbits = 1, breed = No male rabbits = 1, female rabbits = 1, breed = No?
- Cmale rabbits = 1, female rabbits = 2, breed = Yes male rabbits = 1, female rabbits = 2, breed = Yes?
- Dmale rabbits = 1, female rabbits = 0, breed = No male rabbits = 1, female rabbits = 0, breed = No?
Unlock ISEB-SWT2 to see the answer
You've previewed enough free ISEB-SWT2 questions. Unlock ISEB-SWT2 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.