menu
Qamnty
Login
Register
My account
Edit my Profile
Private messages
My favorites
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
Ask a Question
Questions
Unanswered
Tags
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 & Tech
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 & Tech
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 & Tech
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 & Tech
college
1
answer
3
votes
229k
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