luislikesgames12
luislikesgames12 luislikesgames12
  • 01-12-2020
  • Computers and Technology
contestada

What number will be output by the console.log command on line 5?
A. 10
B. 25
C. 30
D. 35

What number will be output by the consolelog command on line 5 A 10 B 25 C 30 D 35 class=

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 06-12-2020

Answer:

The output is 35

Explanation:

Required

Determine the output on line 5

We start by analysing the program line by line.

On line 1: kit = 20

On line 2: roo = 10

On line 3: kit = kit + 5

Substitute 20 for kit.

So, we have

kit = 20 + 5

kit = 25

On line 4:

roo = kit + roo

Substitute values for kit and too

roo = 25 + 10

roo = 35

On line 5: Output roo

So, 35 is displayed as an output

Answer Link

Otras preguntas

join sentence using connectershe failed the exam . he had not studied .​
Please help me it is urgent
what does NBT stand for?​
Please help I’m l got stuck on this one
4.) A student is writing an argument that the United States would benefit by lowering the voting age to 16. Which *TWO* statements should be removed from the ar
supposed normal distribution has a mean of 89 and a standard deviation of 7. What is P(x≤82)? NO LINKS!!!a. 0.975b. 0.84c. 0.16d. 0.025​
Which of the following financial documents would most likely be stored in a safe-deposit box?
The second class railway fare for 240 Km of journey is Rs. 15. What would be the fare for a journey of 139.2 Km? pls answer my question..i will mark brainliest.
20 pointsIn the figure below, which answer choice correctly identifies the name of two line segments? A . B .C. D
Write a program in Java programming language to display or calculate “Hello, Daddy and Mum”