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

The U.S. Senate contains A.435 members and is considered more likely to represent local constituent interests. B.435 members and is considered more stable and i
To survive, what gas do we need to breath in?
What grievous event occurred in tenochtitlan in 2500?
Reggie accidentally left his books on top of his car before he left for class. The books stayed on top of his car while he was driving north on Oak Avenue. The
Anyone know any good phone accessories? (For a project about advertising, my project is me trying to sell a list of phone accessories using real data from onlin
If my white blood count is elevated but no infections found what else could be causing this
In the figure below, F,G,H and J are collinear. FG, GK, and HK are lone segments of equivalent length, and the measure of JHK is 120 degrees. What is the degree
Is it 15 , 75 , 90 , or 105 degrees ?
How would the army of the early roman republic treat the people they captured?
number 8 plese explain how to do it