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

52 thousandths in scientific notation
does John brown regret What he has done
Compare and contrast british ideas of kingship before and after the glorious revolution. what was the most important change brought about by the event of 1688 a
The question “how much of our annual budget should we spend to advertise our new product line?” would most likely be asked by a
What number of fe atoms and what amount (moles) of fe atoms are in 500.0 g of iron?
An architect is designing a house in which a 104-square-foot room and a 130-square-foot room share a wall. What is the greatest possible integer length of the s
Which is a way to evaluate a risk factor?
How many positive 4-digit integers have only odd digits?
When you see the =C7*$B$3 formula, what will happen when it is copied to the cell directly below the active cell using the fill handle?
Find the sum of all positive rational numbers that are less than 5, and that has a denominator of 30 when written in lowest terms.