expand icon
book Programming Logic and Design, Introductory 7th Edition by Joyce Farrell cover

Programming Logic and Design, Introductory 7th Edition by Joyce Farrell

Edition 7ISBN: 1285225562
book Programming Logic and Design, Introductory 7th Edition by Joyce Farrell cover

Programming Logic and Design, Introductory 7th Edition by Joyce Farrell

Edition 7ISBN: 1285225562
Exercise 16

Which of the following is an indefinite loop?

a. a loop that executes exactly 10 times

b. a loop that follows a prompt that asks a user how many repetitions to make and uses the value to control the loop

c. both of the above

d. none of the above

Step-by-step solution
Verified
like image
like image

Step 1 of 8

The loop that executes exactly 10 times, the loop is not an indefinite loop. Because the loop iterations already decided as 10 times. So, it is a definite loop.


Step 2 of 8


Step 3 of 8


Step 4 of 8


Step 5 of 8


Step 6 of 8


Step 7 of 8


Step 8 of 8

close menu
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
cross icon