Exam 5: Looping

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

Match each term with a statement below. -A loop that may execute a different number of times each time the program executes

(Multiple Choice)
4.9/5
(30)

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

(Multiple Choice)
4.7/5
(33)

Loops are frequently used to ____;that is,to make sure it is meaningful and useful.

(Multiple Choice)
4.8/5
(39)

Match each term with a statement below. -Loops within loops

(Multiple Choice)
4.9/5
(35)

Usually,when you create nested loops,each loop has its own ____.

(Multiple Choice)
4.7/5
(30)

The loop control variable is initialized after entering the loop.

(True/False)
4.8/5
(31)

A(n)____ loop executes a predetermined number of times.

(Multiple Choice)
4.9/5
(38)

A mistake programmers often make with loops is that they ____.

(Multiple Choice)
4.8/5
(32)

Many loop control variable values are altered by ____,or adding to them.

(Multiple Choice)
4.9/5
(36)

A loop within another loop is known as a(n)____ loop.

(Multiple Choice)
4.9/5
(40)

A(n)____ is very similar to a counter that you use to count loop iterations,except that you usually add a value other than one to this type of variable.

(Multiple Choice)
4.9/5
(30)

In a for statement,a loop control variable is initialized,tested,and ____________________.

(Short Answer)
5.0/5
(43)

The safest action is to assign the value 1 to accumulators before using them.

(True/False)
4.7/5
(38)

In some cases,a loop control variable does not have to be initialized.

(True/False)
4.9/5
(38)

How might user data be validated?

(Essay)
4.8/5
(37)

Programmers employ the acronym ____ to mean that if your input is incorrect,your output is worthless.

(Multiple Choice)
4.8/5
(33)

Match each term with a statement below. -A variable that you use to gather values

(Multiple Choice)
4.8/5
(31)

The ____ loop is particularly useful when processing arrays.

(Multiple Choice)
5.0/5
(38)

Forgetting to initialize and alter the loop control variable are common mistakes that programmers sometimes make.

(True/False)
4.8/5
(27)

The ____ loop provides three actions in one compact statement.

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

Filters

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