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

The Mau Mau, a secret African society, fought to free the country of a. Angola. b. Sudan. c. Uganda. d. Kenya
Capitalism falls under a economic system.
Q: how do I find the average of a line plot? A:look at the picture
Write a number in the blank that will make the number sentence true 3x blank greater than or equal to one or less than
how do I draw a model that shows decimal 0.78
Critically discuss the elements characteristics of a successful business
What is community service and y is it important?
What happens to parallel light rays that strike a concave lens?
When is it helpful to round the quotient to the nearest hundredth
In what way did the Mongol empire affect Russia and Persia similarly? A) the Mongols established a centralized religion. B) the Mongols created a central mail s