Filters
Question type

Study Flashcards

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

A) True
B) False

Correct Answer

verifed

verified

True

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

A) True
B) False

Correct Answer

verifed

verified

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


A) Execute
B) Process
C) Do
D) Loop

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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


A) Posttest
B) Pretest
C) DoAfter
D) ProcessAfter

E) B) and D)
F) None of the above

Correct Answer

verifed

verified

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


A) posttest
B) pretest
C) before
D) after

E) None of the above
F) All of the above

Correct Answer

verifed

verified

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.


A) selection
B) execute
C) iterative
D) another posttest loop

E) A) and D)
F) B) and C)

Correct Answer

verifed

verified

Most programmers use posttest loops.

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

True

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

A) True
B) False

Correct Answer

verifed

verified

The instructions in a posttest loop ____.


A) may never be processed
B) should only be processed once
C) always will be processed at least twice
D) always will be processed at least once

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

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


A) using a nested loop for the initial condition
B) placing the posttest loop inside a selection structure
C) resetting the counter variable on each pass of the loop
D) initializing all loop variables to zero

E) B) and D)
F) C) and D)

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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


A) loop condition
B) loop exit condition
C) loop full condition
D) loop retreat condition

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

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


A) sequential
B) pretest
C) posttest
D) iterative

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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.

A) True
B) False

Correct Answer

verifed

verified

True

Showing 1 - 20 of 23

Related Exams

Show Answer