menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Register
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
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
asked
Nov 3, 2022
32.6k
views
9
votes
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
Computers and Technology
high-school
Jezer Crespo
asked
by
Jezer Crespo
7.0k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
2
Answers
0
votes
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
Michael West
answered
Nov 3, 2022
by
Michael West
7.6k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
4
votes
A 51
x=10 so we substitute 10 into the spots for x in the beginning
x=10+7
x=17*3
x=51
Yohjp
answered
Nov 7, 2022
by
Yohjp
7.3k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
8.0m
questions
10.7m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org