menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
How many times does the following code execute? int x=0; int y=3; While x<=y x=x+1; endWhile A. 0 B. 3C. infiniteD. 4 Program design and development
asked
Feb 12, 2018
235k
views
0
votes
How many times does the following code execute?
int x=0;
int y=3;
While x<=y
x=x+1;
endWhile
A. 0 B. 3C. infiniteD. 4 Program design and development
Computers and Technology
college
Paul Michaels
asked
by
Paul Michaels
7.3k
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
6
votes
Infinite because it is a infinite loop that is true and the first two lines were just declaring variables
Eddy Pronk
answered
Feb 12, 2018
by
Eddy Pronk
9.6k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
3
votes
The first time the while statement is evaluated, x = 0 so the answer is D. 4
Grokster
answered
Feb 18, 2018
by
Grokster
7.7k
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
Nov 14, 2024
84.9k
views
Trace coding below p = 2 q = 4 while p < q output "Adios" r = 1 while r < q output "Adios" r = r + 1 endwhile p = p + 1 endwhile
AmrAngry
asked
Nov 14, 2024
by
AmrAngry
7.8k
points
Computers and Technology
college
1
answer
5
votes
84.9k
views
asked
Dec 23, 2024
195k
views
Trace coding below a = 1 b = 2 c = 5 while a < c a = a + 1 b = b + c endwhile output a, b, c
Jeremy Logan
asked
Dec 23, 2024
by
Jeremy Logan
7.7k
points
Computers and Technology
college
1
answer
4
votes
195k
views
asked
Mar 9, 2024
229k
views
Trace coding below j = 2 k = 5 n = 9 while j < k m = 6 while m < n output "Goodbye" m = m + 1 endwhile j = j + 1 endwhile
Yousef
asked
Mar 9, 2024
by
Yousef
8.4k
points
Computers and Technology
college
1
answer
3
votes
229k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
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.
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
What is an example of a dedicated computer system?
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