red9standingby14 red9standingby14
  • 01-03-2021
  • Computers and Technology
contestada

Consider the following code segment

Consider the following code segment class=

Respuesta :

zachw32
zachw32 zachw32
  • 01-03-2021

Answer:

D:

2

54

Explanation:

In line 3 Math.random() will return a number between 0 and 1, so the minimum is 3 (0*5+3=3), therefore it is impossible for line 4 to return the value 2

Answer Link

Otras preguntas

Factor mn+5m-3n-15.
Birds play an important role in the environment by?
What are some characteristics of medieval music?
the krazy kite company is planning to produce kites.the company has rented space for its manufacturing operation at $6,000 per month. each kite requires $37 wor
Why do people choose to visit the coast?
A farmer wants to use 200 feet of fencing for a chicken pen. He wants the width of the pen to be 20 feet. What is the length of the pen? Please tell me step b
Napoleon’s rule made Europeans love France and ended any desire they had to rule themselves. It deprived them of a unified code of law. A. True B. False
Line segment DCOE is a diameter of circle O, line segment AB is a chord of the circle, and line segment OD is perpendicular to line segment AB at C. If AB=8 an
What causes tectonic plates to move
Which supports the hypothesis that life has changed over time? A. Organisms differ from one part of the world to another. B. The atmosphere of the early earth w