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 one benefit of dynamic pricing?
I need someone to show the work of this. I’m very confused :/
Which of the following can affect income? A - Skills of workers B - Supply + Demand C - Both D - None
If you have 54 blue marbles and 99 yellow marbles, what is the greatest number of identical marble bags that can be made without any marbles leftover?
Please help me with this question
Industrialization of the United StatesAnswer1. first president of the Confederate States of America 2. capital city of the Confederacy 3. assassinated Abraha
What is an environmental sculpture?
There are 10 gallons of water in a tank. Each minute, 4 more gallons are added. The volume of the water in a tank after t minutes is V (gallons). What is the fo
Which is more dense, a pound of rice or a pound of cement?
If m∠C = 90°, side c = 29, and side a = 21, then side b = ___. 20 19 22 17