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 larger 0.6 or 3/4 explain?
tanisha ran 3/5 of a 26 mile race in 3.2 hours.if she ran at a constant rate,what was her speed in miles per hour?
There were 149 angelfish and goldfish in an aquarium.  There were twice as many guppies as angelfish.  After selling 35 goldfish there are half as many goldfish
What was the original goal of the Framers when they met at Independence Hall?  How did that goal change?
plz helpp with this french hw!
what are the effects of global warming
walter buys a bus pass for 30$. everytime he rides the bus money is deducted from the value pass. he rode 12 times and 24$ was deducted from the pass. how much
What is the meaning of open proportion?
Which is larger 7% or 0.7 why?
5.815 + 6.021 as a mixed number