Multiple Choice
What is the output of the following C++ code? num = 100;
while (num <= 150)
num = num + 5;
cout << num << endl;
A) 150
B) 155
C) 160
D) 165
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q11: The following while loop terminates when j
Q14: Which of the following loops does not
Q26: In the case of the sentinel-controlled while
Q29: The statement in the body of a
Q35: Consider the following code.(Assume that all
Q35: The _ statement can be used to
Q37: If a(n)_ statement is placed in a
Q39: When a continue statement is executed in
Q39: In a(n)"_" problem,either the loop executes one
Q41: Suppose j,sum,and num are int variables,and