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

Given the sequence in the table below, determine the sigma notation of the sum for term 4 through term 15
What reforms did Ataturk implement to transform the Turkish Republic into a modern and secular state?
Economic changes, internal conflict and new industry are all __________________. a. changes since the end of communism c. new issues developing in Romania b. pr
In order to track our economy, the U.S. government reports each month on how much business spending and how much consumer spending takes place. Which of the fol
Which belief was generally held by the Founding Fathers at the Constitutional Convention in 1787?
the sum of three times a number and seven is greater than twice the number minus four
give the nth term and the next term of this 8,13,18,23,28
which were newly created cabinet-level departments in the johnson administration
what were Verrazano and Cartier searching for when they explored the American
what is three fiths of 45