• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 3 pages
Exam (elaborations)

Programming Logic & Design - Chap. 5 Looping Review Questions and Answers

Document preview thumbnail
Preview 1 out of 3 pages

Programming Logic & Design - Chap. 5 Looping Review Questions and Answers

Content preview

Programming Logic & Design - Chap. 5
Looping Review Questions and
Answers

Adding 1 to a variable is also called _______________ it.
Select one:
a. digesting
b. incrementing
c. resetting
d. decrementing - ANSWER-b. incrementing

Which of the following is a definite loop?
Select one:
a. a loop that executes as long as a user continues to enter valid data
b. a loop that executes 1,000 times
c. both of the above
d. none of the above - ANSWER-d. none of the above

Which of the following is an indefinite loop?
Select one:
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 - ANSWER-b. a loop that follows a prompt that asks a user how
many repetitions to make and uses the value to control the loop

When two loops are nested, the loop that is contained by the other is the
_______________loop.
Select one:
a. captive
b. unstructured
c. inner
d. outer - ANSWER-c. inner

When loops are nested, _______________.
Select one:
a. they typically share a loop control variable
b. one must end before the other begins
c. both must be of the type-definite or indefinite
d. none of the above - ANSWER-d. none of the above

Most programmers use a for loop _______________.
Select one:
a. when they know the exact number of times a loop will repeat

Document information

Uploaded on
March 22, 2025
Number of pages
3
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
lectknancy
3.8
(82)
Sold
342
Followers
27
Items
26160
Last sold
3 days ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions