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 14

Which of the following is a definite loop?

a. a loop that executes as long as a user continues to enter valid data

b. a loop that executes 1000 times

c. both of the above

d. none of the above

Step-by-step solution
Verified
like image
like image

Step 1 of 2

Definite Loop

A loop in which the number of repetitions is known before starting the execution of the loop is called a definite loop. In the option (b), the number of repetitions, that is 1000 known before.

Hence the correct option is (b) a loop that executes 1000 times .


Step 2 of 2

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