menu
Qamnty
Login
Register
My account
Edit my Profile
Private messages
My favorites
When does the following while-loop stop running? var = 1 while var == 1 : num = num+1 print (num) A. As soon as num reaches the value of 10 B. After the first time through the l…
Ask a Question
Questions
Unanswered
Tags
Ask a Question
When does the following while-loop stop running? var = 1 while var == 1 : num = num+1 print (num) A. As soon as num reaches the value of 10 B. After the first time through the l…
asked
Sep 26, 2021
215k
views
0
votes
When does the following while-loop stop running?
var = 1
while var == 1 :
num = num+1
print (num)
A. As soon as num reaches the value of 10
B. After the first time through the loop it stops
C. It never stops running
D. None of the above
Computers & Tech
high-school
Alex Da Franca
asked
by
Alex Da Franca
8.1k
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.
1
Answer
4
votes
The loop never stops running because the value of var is always 1.
Giang Le
answered
Sep 30, 2021
by
Giang Le
8.4k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Mar 14, 2020
140k
views
How many times will the following loop execute? var num = 10; while ( num > 0 ) { document. getElementById("outputDiv").innerHTML = document. getElementById("outputDiv").innerHTML +" "+num + " "; } 1 10
Hadi
asked
Mar 14, 2020
by
Hadi
8.2k
points
Computers & Tech
college
1
answer
3
votes
140k
views
asked
Jun 15, 2024
92.9k
views
Question 15 (10 points) A store has 20 apples in its inventory. How can you store this information in a JavaScript variable? A 20 = numApples; B var num apples = 20; C var numApples = 20; D var numApples
Alma
asked
Jun 15, 2024
by
Alma
8.2k
points
Computers & Tech
high-school
1
answer
2
votes
92.9k
views
asked
Apr 14, 2020
85.0k
views
What is the value of variable num after the following code segment is executed? var num = 10; while ( num <10) { num = num +1; }
Davew
asked
Apr 14, 2020
by
Davew
8.5k
points
Computers & Tech
college
1
answer
3
votes
85.0k
views
Ask a Question
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.
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 Qamnty