Exam 4: Looping

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

A(n) ____________________ input is the first input that sets a loop control variable's first value before the loop begins.

(Short Answer)
4.8/5
(34)

____________________ data can make parts of a program worthless.

(Essay)
4.9/5
(31)

____ a data item means you override incorrect data by setting the variable to a specific value.

(Multiple Choice)
4.9/5
(37)

If you use the wrong comparison with the loop control variable, the body of the loop may never execute.

(True/False)
4.7/5
(45)

The body of a loop can contain only a limited number of statements.

(True/False)
4.8/5
(39)

Setting a data item to a specific value to override incorrect input is called ____________________.

(Short Answer)
4.8/5
(52)

A(n) ____________________ loop is a loop which has no end.

(Short Answer)
4.9/5
(36)

There is no benefit to changing a variable's value when it will never be used again during the current execution.

(True/False)
4.8/5
(40)

You control a loop's repetitions by using either a counter or a(n) ____ value.

(Multiple Choice)
4.8/5
(37)

In all structured loops, the ____ must provide either entry to, or exit from, the repeating structure.

(Multiple Choice)
4.7/5
(40)

A common mistake when programming with loops is neglecting to ____ the loop control variable.

(Multiple Choice)
4.8/5
(42)

If you run the same application a second time, the variables might occupy different ____ from the ones they occupied during the first run.

(Multiple Choice)
4.8/5
(46)

When one loop appears inside another, the loop that contains the other loop is the ____________________ loop.

(Short Answer)
4.9/5
(43)

Programmers must be careful to use the correct ____ in the statement that controls a loop.

(Multiple Choice)
4.7/5
(29)

The decision that controls every loop is always based on a ____ comparison.

(Multiple Choice)
4.9/5
(38)

You usually use the for statement with ____ loops.

(Multiple Choice)
4.9/5
(36)

In pseudocode, which statement is used to show the stopping point of a loop structure?

(Multiple Choice)
4.9/5
(43)

The value that signals a loop to stop is the ____________________ value.

(Short Answer)
4.9/5
(37)

What is the correct data type of an accumulator variable used to store real estate sales totals?

(Multiple Choice)
4.9/5
(37)

Program logic gets more complicated when you must use loops within loops, or ____ loops.

(Multiple Choice)
4.8/5
(40)
Showing 21 - 40 of 50
close modal

Filters

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