cobidadon cobidadon
  • 04-02-2021
  • Computers and Technology
contestada

In the code below, what's the final value of the variable x?
var x = 10;
X = x + 7;
X = X* 3;
A:51
B:34
C:10
D:21

Respuesta :

KatelynnAnlage
KatelynnAnlage KatelynnAnlage
  • 04-02-2021
A 51

x=10 so we substitute 10 into the spots for x in the beginning

x=10+7

x=17*3

x=51
Answer Link
kirabowen15
kirabowen15 kirabowen15
  • 04-02-2021
If bar x = 10 ;

Where you see the var x replace it with 10.

X = x + 7
X = 10 + 7 = 17

Substitute the value of the first var X in the equation

X = X* 3
X = 17 * 3 = 51

Therefore the final value of var x is 51 option A
Answer Link

Otras preguntas

Which of the following was the main reason Africans resisted European colonization and rule in the late 18i80s? ​
Two balloons with charges of +3.00uC and -8.00 uC attract each other with a force of 0.0626 Newton. Determine the separation distance between the two balloons.
How many classes were in rome?
What is the value of c in the equation below?
Which of those methods of waste management is most likely to produce air pollution
Which statement best describes voting in the United States?
What is the volume of the cone shown in the picture ? need some help
Which of the following is an example of erosion under the force of gravity? A. Rill erosion B. Saltation C. Slumping D. Sheet erosion
Which statement is an example of cultural convergence
example of secondary data