menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
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.9k
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
8.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
8.0k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
No related questions found
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.4m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Disadvantages of using animation in advertising? advantages and disadvantages of using animation for education? advantages and disadvantages of using animation in entertainment?
Explain why binary codes are used to represent characters, numbers and symbols :)
This is science they just dont have the subject buy anyways describe interactions you have with the environment that you depend on to meet your basic needs hope u can help
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org