Exam 5: Looping

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

The statements in the body of a do-while loop are executed

(Multiple Choice)
4.9/5
(37)

A(n)is a special value that marks the end of a list of values.

(Multiple Choice)
4.8/5
(29)

In order for a C++ program to read data from a file,

(Multiple Choice)
4.9/5
(38)

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

(True/False)
4.8/5
(36)

To use files in a C++ program you must include the header file.

(Multiple Choice)
4.7/5
(44)

The block of code in the body of a while statement can contain an unlimited number of statements, provided they are enclosed in a set of braces.

(True/False)
5.0/5
(33)

To use files in a C++ program you must include the header file.

(Multiple Choice)
4.8/5
(32)

If nothing within a while loop ever causes the condition to become false, a(n)may occur.

(Multiple Choice)
4.8/5
(33)

A variable that keeps a running total of data values is called a(n)

(Multiple Choice)
4.7/5
(37)

A for statement contains three expressions: initialization, test, and

(Multiple Choice)
4.7/5
(31)

The do- while loop is a(n)loop, whereas the while loop is a(n)loop.

(Multiple Choice)
4.8/5
(37)

A for loop is considered a(n)_ loop.

(Multiple Choice)
4.8/5
(33)

You can nest a for loop inside another for loop, but cannot nest a while loop inside another while loop or a do-while loop inside another do-while loop.

(True/False)
4.9/5
(38)

The statements in the body of a do-while loop are executed

(Multiple Choice)
4.9/5
(32)

A(n)is a variable that controls the number of times a loop iterates.

(Multiple Choice)
5.0/5
(38)

If a while loop has no braces around the body of the loop

(Multiple Choice)
4.9/5
(36)

The while loop is a(n)loop, whereas the do-while loop is a(n)loop.

(Multiple Choice)
4.9/5
(43)

The -- operator

(Multiple Choice)
4.7/5
(32)
Showing 21 - 38 of 38
close modal

Filters

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