Exam 3: Control Statements, Part 1

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

How many times will the following loop print hello? I = 1; While i <= 10 ) Cout << "hello";

(Multiple Choice)
4.8/5
(31)

Which of the following operations has the highest precedence?

(Multiple Choice)
4.7/5
(42)

A block:

(Multiple Choice)
4.8/5
(21)

Assuming that x and y are equal to 3 and 2, respectively, after the statement x -= y executes, the values of x and y will be:

(Multiple Choice)
4.8/5
(37)

Which of the following encompasses the other three?

(Multiple Choice)
4.9/5
(32)

What is wrong with the following while loop? While sum <= 1000 ) Sum = sum - 30;

(Multiple Choice)
4.9/5
(35)

An uninitialized local variable contains:

(Multiple Choice)
4.8/5
(35)
Showing 21 - 27 of 27
close modal

Filters

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