Exam 4: Control Statements, Part 2

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

Switch can be used to test:

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

A

Float and double variables should be used:

Free
(Multiple Choice)
4.8/5
(27)
Correct Answer:
Verified

D

Which of the following statements about the for statement is false?

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

C

Which of the following is a poor programming practice?

(Multiple Choice)
4.9/5
(36)

An operator that associates from right to left is:

(Multiple Choice)
4.9/5
(29)

Of the following, which is not a logic error?

(Multiple Choice)
4.7/5
(43)

Which of the following is not one of the C++ control structures?

(Multiple Choice)
4.8/5
(44)

Which of the following is false?

(Multiple Choice)
4.9/5
(35)

Which of the following is false?

(Multiple Choice)
4.9/5
(32)

The ____________, __________ and ____________ are the only three forms of control necessary.

(Multiple Choice)
4.9/5
(43)

Variables are also known as:

(Multiple Choice)
4.7/5
(38)

If a variable is declared in the initialization expression of a for statement, then:

(Multiple Choice)
4.8/5
(34)

The expression if num != 65 ) cannot be replaced by:

(Multiple Choice)
4.7/5
(36)

The OR ||) operator:

(Multiple Choice)
4.9/5
(30)

Which of the following is not one the rules for forming structured programs?

(Multiple Choice)
4.9/5
(25)

What will the following program segment do? Int counter = 1; Do { Cout << counter << " "; } while ++counter <= 10 );

(Multiple Choice)
4.8/5
(35)

If a do…while structure is used:

(Multiple Choice)
4.8/5
(38)

In a switch structure:

(Multiple Choice)
4.8/5
(28)

Which of the following is correct when labeling cases in a switch structure?

(Multiple Choice)
4.7/5
(36)

Consider the execution of the following for loop For int x = 1; x < 5; increment ) Cout << x + 1 << endl; If the last value printed is 5, which of the following might have been used for increment?

(Multiple Choice)
4.8/5
(34)
Showing 1 - 20 of 28
close modal

Filters

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