Question

How many times is the loop body of the while statement executed?

image.png 


How many times is the loop body of the while statement executed?

 a. once

 b. forever

 C. 49 times

 d. 50 times

 e. until a number 50 or larger is entered


 The value stored in variable s at the end of the execution of the loop could best be described as:

 a.

 the average of the numbers scanned

 b. the sum of the numbers scanned

 c. the largest of the numbers scanned

 d. how many numbers were scanned

 e. the sentinel value


 The value stored in variable z at the end of the execution of the loop could best be described as:

 a. how many positive items were scanned

 b. the sum of all positive items scanned

 c. how many negative items were scanned

 d. the sum of all negative items scanned

 e. the sentinel value


 The loop can best be categorized as a:

 a. counter-controlled loop

 b. sentinel-controlled loop

 c. loop that computes a product

 d. general conditional loop

 e. none of the above


3 0
Add a comment Improve this question Transcribed image text
Answer #1

How many times is the loop body of the while
statement executed?
d. 50 times

The value stoed in variable s at the end of the
execution of the loop could be best described as:
b. the sum of the numbers scanned

The value stored in variable z at the end of the
execution of the loop could best be described as:
c. how many negative items were scanned

The loop can best be categorized as a:
a. counter controlled loop

Add a comment
Know the answer?
Add Answer to:
How many times is the loop body of the while statement executed?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT