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 element forms a compound with chlorine with the general formula MCl? (1) Rb (3) Re (2) Ra (4) Rn
if the perimeter of the rectangle is 48, find the dimensions
Amanda reads 15 pages of her 150 page book in 2 hours at this rate how long will it take her to read the entire book
F(x)=-x^2+8x+9 What is the vertex and it the vertex the minimum or maximum??
The "second front" on the beaches at Normandy in France allowed the Allies to what?
What is the average weight of the human eyeball?
cube root (6.4 * 10^10)
what is 2 3/8 as a percent
The gram formula mass of NH4Cl is(1) 22.4 g/mole (3) 53.5 g/mole(2) 28.0 g/mole (4) 95.5 g/mole
What role does infrastructure play in transitional economies?