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

solve the equation 50=4(x-7)-6(3x-6)
How many grams of mgo are produced when 40.0 grams of o2 react completely with mg? 2 mg (s) + o2 (g) → 2 mgo (s)?
what is the best code editor for python
Find the value of y that makes the statement true. 14 – 3y = 4y A. 12 B. 2 C. –12 D. –2
How are bony fish better adapted to a swimming way of life than cartilaginpus fish?
Which of these statements best explains why dublin is not cooler than san francisco although it is over 1,600 km further north? dublin is closer to the tropic o
solve the equation 50=4(x-7)-6(3x-6)
Calculate the area of the trapezoid if a = 17.3, b= 13.5, c= 7.8 and h= 12.6
If a pentagon is a regular pentagon, then what is the measure of each interior angle? A. 108° B. 36° C. 144° D. 72°
A student solving a physics problem for the range of a projectile has obtained the expression r= v20sin(2θ)g where v0=37.2meter/second, θ=14.1∘, and g=9.80meter