Question: The following code examine three variables - - x and y - - and prints the largest multiple of 1 5 among them. If none
The following code examine three variables x and y and prints the largest multiple of among them. If none of them is a multiple of it prints a message to that effect.
def largestMultiplexy:
x and y are numbers
Returns the maximum number of x and y that is a multiple of
If none of them is a multiple of return None
found False
largest
if x :
largest x
found True
if y :
if not found :
largest y
found True
elif y largest :
largest y
if found :
return largest
else :
return None
Assume that largestMultiple is called with numbers as arguments.
Which of the following test suites would make a pathcomplete glass box test suite for largestMultiple? correct answer only
Question options:
Test Suite A: largestMultiple largestMultiple largestMultiple largestMultiple largestMultiple
Test Suite B: largestMultiple largestMultiple largestMultiple largestMultiple largestMultiple
Test Suite C: largestMultiple largestMultiple largestMultiple largestMultiple largestMultiple
Test Suite D: largestMultiple largestMultiple largestMultiple largestMultiple largestMultiple
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
