Exam 13: Do It, Then Ask Permission Posttest Loops

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

A pretest loop is easier to write and understand than a posttest loop with a selection structure.

Free
(True/False)
4.9/5
(34)
Correct Answer:
Verified

True

When a posttest loop is placed in a selection structure, the loop will be processed only when the selection structure's condition evaluates to True.

Free
(True/False)
4.9/5
(39)
Correct Answer:
Verified

True

The Do…Loop statement can be used to code a pretest loop as well as a posttest loop.

Free
(True/False)
4.9/5
(43)
Correct Answer:
Verified

True

____ loops should be used only when their instructions must be processed at least once.

(Multiple Choice)
4.7/5
(34)

In the ____ loop, the condition appears in the last line.

(Multiple Choice)
4.9/5
(41)

You are given the following statement: Do ... Loop Until intCounter > intNumTimes. The Until intCounter > intNumTimes represents a _____.

(Multiple Choice)
4.9/5
(42)

In the pretest syntax for a Do…Loop statement, the {While | Until} condition section is part of the ____ clause.

(Multiple Choice)
4.9/5
(41)

A repetition structure can be either a pretest loop or a posttest loop.

(True/False)
4.8/5
(34)

The instructions in a posttest loop ____.

(Multiple Choice)
4.9/5
(32)

You may test an initial condition of a posttest loop by ____.

(Multiple Choice)
4.8/5
(35)

In the posttest syntax, the condition is evaluated before the loop instructions are processed.

(True/False)
4.8/5
(45)

In the pretest syntax, the condition is evaluated after the loop instructions are processed.

(True/False)
4.8/5
(46)

The difference between pretest and posttest loops pertains to how the accumulator is evaluated.

(True/False)
4.8/5
(33)

In the posttest syntax, the only purpose of the Do clause is to mark the beginning of the loop.

(True/False)
5.0/5
(41)

Pretest loops should be used only when their instructions must be processed at least once.

(True/False)
4.7/5
(38)

Most programmers use posttest loops.

(True/False)
4.9/5
(32)

The diamond that represents the condition appears at the top of the loop in the flowchart of a posttest loop.

(True/False)
4.9/5
(29)

The instructions in a pretest loop will be processed at least once.

(True/False)
4.8/5
(31)

One problem with posttest loops is that they always execute at least once. You can fix the problem in the Posttest Loop button's code by placing the posttest loop in a(n) ____ structure.

(Multiple Choice)
4.8/5
(28)

The ____ loop condition is evaluated before the instructions within the loop are processed.

(Multiple Choice)
4.9/5
(33)
Showing 1 - 20 of 23
close modal

Filters

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