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

what is the distance between A(3,-4) and B(-1,3) (distance formula)
Suppose that a large mixing tank initially holds 700 gallons of water in which 50 pounds of salt have been dissolved. another brine solution is pumped into the
Most executive believe that they and their firms behave in an ethical manner and that it is in their best interests to do so
what are the three hallmarks of science
Based on the above passage what impact would mercantilism have on the British colonies and why
The product of 5 and 10 more than a number
What is the relationship and sequence correspondence of the rna transcript and the dna template strand with respect to transcription?
In novels, falling action is often followed by
Who laid the foundation for the systematic study of anatomy by identifying themes, for example, that complex structures are built from simpler structures?
What is the purpose of filing a float plan?