Which function calls would provide the most helpful test of this function? Remember: With tests, you are attempting to figure out all the possible ways the function could be broken.
function findMin(num1, num2){
if(num1 < num2){
return num1;
} else {
return num2;
}
}
A. findMin(-1, 0)
findMin(2,4)
findMin(5,10)
B. findMin(5,3)
findMin(7,2)
findMin(5,1)
C. findMin(1,1)
findMin(-2,2)
findMin(0,3)
D. findMin(-1,1)
findMin(1,-1)
findMin(1,1)

Answers

Answer 1

Answer:

D

Explanation:

Answer 2

Based on the information given, the correct option will be:

D. findMin(-1,1)

findMin(1,-1)

findMin(1,1)

It should be noted that based on the information given, the correct option is D because it contains a duplicate set of numbers.

In this case, "1,1", would be vital in breaking the algorithm and require a bug fix from the developer. This then makes it the most helpful.

In conclusion, the correct option is D.

Learn more coding on:

https://brainly.com/question/22654163


Related Questions

explain the digitization process​

Answers

Answer:

Digitization is the process of converting information into a digital (i.e. computer-readable) format. The result is the representation of an object, image, sound, document or signal (usually an analog signal) by generating a series of numbers that describe a discrete set of points or samples

Explanation:

Use the function random.randint to write a program that rolls a 6-sided die 100 times, and prints out all of the rolls.

Print each roll on its own line.

Answers

import random

for x in range(100):

   print(random.randint(1,6))

I wrote my code in python 3.8. I hope this helps.

Other Questions
Which are components of the bone matrix? Selectall that apply.mineralsepiphysiscollagen fibersblood vesselsDONE Anybody know what 2(2x - 9) = 38 is? identify what soil in aquarium stones representALOT OF POINTS A rectangle box was measured with a length of 4cm, width 2cm, and height 2cm. What is the volume of the box? Jonathan put ice cream in the freezer, and the ice cream remained frozen.Which of the following best describes this situation? Based on the data, this is an example of correlation and causation. Based on the data, this is an example of correlation. Based on the data, this is an example of causation. Based on the data, this is not an example of causation or correlation. This cell is in what stage of mitosis? Use the function random.randint to write a program that rolls a 6-sided die 100 times, and prints out all of the rolls.Print each roll on its own line. In which situation would it be more appropriate to use formal language Hpw long can a human survive without food or water? h - 9 = 7 explain how you found h which is the best way to describe l-2l ? PLEASE HELP URGENT 20 POINTSSelect the measure of the complement or supplement of the angle. If there is no complement or supplement, select no complement or supplement.55.1 A. 124.9 B. 119.9 C. 49.9 D. no complement or supplement Read the following sentence from the articleThe mob's storming of Congress prompted bipartisan outrage, as lawmakers accused Trump offomenting the violence with his relentless falsehoods about election fraud.What does the verb "fomenting convey in the sentence?(A) the idea that the mob was encouraged by false statements(B) the idea that the claims about election fraud were new(C)the idea that many lawmakers are angry about the storming of Congress(D) the idea that the Capitol violence came about swiftly with little provoking. What was the name of Leonardo's da Vinci pupil who was a model on some paintings for this artist (Saint John the Baptist)? According to the article, which of the following Jane Crow situations most angered Murray?A. She was not permitted to attend Columbia University.B. No women were allowed to speak at the 1963 March on Washington.C. Murray was rejected by Harvard Law School.D. Women were not allowed to become Episcopal priests Definition of linear perspective The polygons are similar, but not necessarily drawn to scale. Find the value of x.A) x=13B) x=7C) x=10D x=5.5 An airplane accelerates from a speed of 88m/s to a speed of 132 m/s during a 15 second time interval. How far did the airplane travel during the time interval? explain the digitization process 21.) What are the teachings of Confucius? *Live in harmony with nature and everyone will be happyHarsh punishments would scare people into not doing bad thingsFocus on doing better in your relationships and you won't have time to do bad things