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

Who led revolts against the Liang dynasty?
Not all laws should be enforced in all situations. true or false. (points : 10) true
According to the theory of plate tectonics, volcanism, mountain building, and other _____ forces receive energy from Earth’s interior.
Which of the following is an accurate statement? A. DC Generators produce current with a voltage that changes from positive to negative. B. AC Gen
p = 2l 2w solve for p, if l = 10 and w = 8
square root of negative 121
which epithelial layers arise(s) from the endoderm?
The specific gravity of basalt is about
Bloody sunday served as a turning point in russia because a. it marked the beginning of world war i. b. it strengthened the tsar’s power. c. it caused the pe
Which of the following describes an atom