Given the following sample of pseudo code: 01 Input number of male rabbits 02 Input number of female rabbits 03 If male

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Given the following sample of pseudo code: 01 Input number of male rabbits 02 Input number of female rabbits 03 If male

Post by answerhappygod »

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 = "No"
06 Print deep male and female rabbits apart!
07 End if
08 End If.
Which of the following test cases will ensure that statement "06" is executed?

A. male rabbits = 1, female rabbits = 1, breed = Yes male rabbits = 1, female rabbits = 1, breed = "Yes"
B. male rabbits = 1, female rabbits = 1, breed = No male rabbits = 1, female rabbits = 1, breed = "No"
C. male rabbits = 1, female rabbits = 2, breed = Yes male rabbits = 1, female rabbits = 2, breed = "Yes"
D. male rabbits = 1, female rabbits = 0, breed = No male rabbits = 1, female rabbits = 0, breed = "No"
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!

This topic has 1 reply

You must be a registered member and logged in to view the replies in this topic.


Register Login
 
Post Reply