menu
Qammunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
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
Ask a Question
Questions
Unanswered
Tags
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 & Tech
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
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
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
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity.org