Chapter 13 Study Guide

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

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

Do

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

true

How many times will the computer process the MessageBox.Show method in the following code? intCount = 0 Do MessageBox.Show ("Hello") intCount += 1 Loop While intCount > 3

1

In the posttest syntax for a Do...Loop, the {While | Until} condition section is part of the _____ clause

Loop

Which of the following Loop clauses will stop the loop only when the intAge variable's value is less than the number 0?

Loop While intAge >= 0

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

Posttest

When should posttest loops be used?

When the instruction have to be processed at least once

With a posttest loop, the condition is evaluated _________ the loop instructions are processed

after

A set of step-by-step instructions that accomplish a task

algorithm

With a pretest loop, the condition is evaluated ________ the loop instructions are processed

before

In a posttest loop, the diamond appears at the ________ of the flowchart

bottom

Reviewing an algorithm while seated at a desk, rather than in front of the computer

desk-check

The loop's condition is represented by a ________ in the flowchart

diamond

The difference between a pretest loop and a posttest loop pertains to when the loop's condition is ________

evaluated

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

false

In the pretest loop, the condition appears on the last line

false

Most programmers prefer to use posttest loops

false

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

false

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

false

Uses standardized symbols to visually depict an algorithm

flowchart

A loop that never ends is called a _______ loop

infinite

The Until condition in a Loop clause is a ______ condition

loop exit

The requirement that must be met for the computer to stop processing the loop body instructions

loop exit condition

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

loop exit condition

The While condition in a Loop clause is a ______ condition

looping

The requirement that must be met for the computer to continue processing the loop body instructions

looping condition

The posttest loop is commonly used when the user needs to select from a _____

menu

You may test an initial condition of a posttest loop by _______

placing the posttest loop inside a selection structure

A loop whose condition is evaluated after the instructions in its loop body are processed is called a _______ loop

posttest

In the _________ loop, the condition appears in the last line

posttest

The ______ loop condition is evaluated after the instructions within the loop are processed

posttest

A loop whose condition is evaluated after the instructions in its loop body are processed

posttest loop

A loop whose condition is evaluated before the instructions in its loop body are processed is called a _______ loop

pretest

In the _________ loop, the condition appears in the first line

pretest

The ______ loop condition is evaluated before the instructions within the loop are processed

pretest

A loop whose condition is evaluated before the instructions in its loop body are processed

pretest loop

A false code that, although it resembles programming language instructions, it cannot be understood by a computer

pseudocode

The control structure that directs the computer to repeat one or more instructions until some condition is met, at which time the computer should stop repeating the instructions

repetition structure

To keep a posttest loop from processing at least once, use a ______ structure

selection

The control structure that directs the computer to make a decision and then take the appropriate action based on that decision

selection structure

In a pretest loop, the diamond appears at the ________ of the flowchart

top

A posttest loop's condition is evaluated after the instructions within the loop are processed

true

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

true

A pretest loop's condition is evaluated before the instructions within the loop are processed

true

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

true

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

true

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

true

The condition in a posttest loop can be phrased as either a looping condition or a loop exit condition

true

The condition in a pretest loop can be phrased as either a looping condition or a loop exit condition

true

The instructions in a pretest loop may never by processed

true


Kaugnay na mga set ng pag-aaral

Test 2 CH 5-9 Test Prep Questions

View Set

Practice Quiz- Chapter 1: General Insurance

View Set

Predicate Adjectives and Predicate Nominatives

View Set

Ch 9- Learning, Memory, and Product Positioning

View Set