Exam 5: Control Structures II: Repetition

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

After a break statement executes, the program continues to execute with the first statement after the structure.

(True/False)
4.8/5
(40)

EOF-controlled while loop is another name for sentinel-controlled while loop.

(True/False)
4.8/5
(43)

A loop that continues to execute endlessly is called an endless loop.

(True/False)
4.7/5
(40)

A counter-controlled loop is used when the exact number of data entries is known.

(True/False)
5.0/5
(41)

Where is the continue statement NOT usually used?

(Multiple Choice)
4.7/5
(32)

Because a do...while loop is a post-test loop, the body of the loop may not execute at all.

(True/False)
4.9/5
(50)

Like a do...while loop, the body of a while loop executes at least once.

(True/False)
4.9/5
(46)

The above code is an example of a(n) ____ while loop.

(Multiple Choice)
4.8/5
(35)

If the while expression becomes false in the middle of the while loop body, the loop terminates immediately.

(True/False)
4.8/5
(44)

In the case of an infinite while loop, the while expression (that is, the loop condition) is always true.

(True/False)
4.8/5
(39)
Showing 41 - 50 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)