Filters
Question type

Study Flashcards

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

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

Correct Answer

verifed

verified

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


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

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

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

True

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

Correct Answer

verifed

verified

Most programmers use posttest loops.

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

True

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

Correct Answer

verifed

verified

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

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

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

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.

Correct Answer

verifed

verified

True

Showing 1 - 20 of 23

Related Exams

Show Answer