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

A baker uses different amounts of salt when she bakes loaves of bread, depending on which recipe she is following. the amount of salt called for in each recipe
Why did workers band together to form labor unions? (Points : 2) to improve working conditions to revolt to modernize factories to make employees work more effi
what is the equation of the line that goes through (1,3) and (5,12) ?
The speed of the wave depends on what? A. The properties of the medium through which the wave travels B. The wavelength of the wave C. The frequency of the wav
The Slavs settled in most of Eastern Europe. True or False
What is the average velocity of wind within a storm?
A rectangle has an area of x square units. The rectangle is dilated to create a new rectangle with an area of 9x square units. Describe the change in the dimens
TO KILL A MOCKING BIRD Why would Jem not be a good replacement narrator for Scout? A. Jem can relate events from an omniscient point of view. B. Jem grows up
A cake is 25cm in diameter. how many caketins can they fit on the oven tray at one time? a tray is 600mm and 500mm
Simplify. –12 – 4.8 ∙ (–2 + –8) A. –168 B. 36 C. 72 D. 168