Multiple Choice
Consider the following code.(Assume that all variables are properly declared.)
cin >> ch;
While (cin)
{
cout << ch;
cin >> ch;
}
This code is an example of a(n) ____ while loop.
A) sentinel-controlled
B) flag-controlled
C) EOF-controlled
D) counter-controlled
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
Q30: What is the output of the
Q35: The _ statement can be used to
Q36: What is the output of the
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