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
4.7k
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
5.0k
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
5.0k
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.
5.2m
questions
6.8m
answers
Other Questions
Why is it important to study in a quiet well lit area A can you read it out loud and not bother anyone B you can focus on your studying without distractions C reading books in a dark too Will strain your
What is the first step you would take to create a table of authorities?
In Java a final class must be sub-classed before it. ?? True ?? False
To apply a style to a paragraph, the first step is to position the insertion point in the paragraph. True or False
What machine listens for HTTP requests to come in to a website’s domain?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org