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 statement is true about an author’s viewpoint? Viewpoint, or purpose, is the author’s reason for writing. Viewpoint is the author’s perspective or the opi
what is the best description of a statement that reports who, what, when and where
Why did Persia feel that it could defeat Greece so easily?
When Tecumseh says, "Where today is the Pequot? Where the Narragansetts, the Mohawks?" he is A. implying that these tribes aren't as brave as their rep
Help number 10!!!!!!!!!
The Gulf of Tonkin Resolution gave President Johnson full war making capacity against Vietnam. Please select the best answer from the choices provided T F
Human services workers do not need to respect their clients’ right to change or stay the same. a. True b. False
Archimedes discovered relationships between _____.
four more than twice a number is seven more than the number.
VWX and NOP are similar. If mV = 44° and mP = 66°, what is mW?