Exam 5: Looping

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

To decrement a number means to increase its value.

Free
(True/False)
4.9/5
(34)
Correct Answer:
Verified

False

The ++ operator

Free
(Multiple Choice)
4.7/5
(46)
Correct Answer:
Verified

D

The while loop has two important parts: a condition that is tested and a statement or block of statements that is

Free
(Multiple Choice)
4.9/5
(33)
Correct Answer:
Verified

B

For data validation, it is best to use a(n)

(Multiple Choice)
4.8/5
(43)

are C++ operators that change their operands by one. A.++ and -- B.+ and -

(Multiple Choice)
4.9/5
(40)

A sentinel is a special value that

(Multiple Choice)
4.9/5
(37)

To a value means to increase it.

(Multiple Choice)
5.0/5
(41)

A while loop may have a semicolon after the test expression and before the body of the loop, but it is not required.

(True/False)
4.8/5
(35)

When a loop is nested inside another loop, the outer loop goes through all its iterations for each iteration of the inner loop.

(True/False)
4.9/5
(35)

The statement causes a loop to terminate early.

(Multiple Choice)
4.7/5
(41)

The while loop has two important parts: a condition that is tested and a statement or block of statements that is executed

(Multiple Choice)
4.9/5
(34)

A while loop is somewhat limited because the counter can only be incremented or decremented by one each time through the loop.

(True/False)
4.9/5
(37)

A while loop is somewhat limited, because the counter can only count up, not down.

(True/False)
4.9/5
(34)

A(n)is a variable that is regularly incremented or decremented each time a loop iterates.

(Multiple Choice)
5.0/5
(35)

To use an output file in a C++ program you must

(Multiple Choice)
4.7/5
(33)

An initialization expression may be omitted from the for loop if no initialization is required.

(True/False)
4.9/5
(36)

The ideal type of loop to use if you want a user to enter exactly 20 values is a(n)loop.

(Multiple Choice)
4.7/5
(31)

The ideal type of loop to use for repeating a menu is a(n)_ loop.

(Multiple Choice)
4.9/5
(34)

You may define a(n)in the initialization expression of a for loop.

(Multiple Choice)
4.7/5
(37)

In a for statement, the expression is executed only once.

(Multiple Choice)
4.7/5
(34)
Showing 1 - 20 of 38
close modal

Filters

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