ch = inFile.next() .charAt() ;while (inFile.hasNext() )
{
System.out.println(ch) ;
Ch = inFile.next() .charAt() ;
}The above code is an example of a(n) ____ loop.
A) sentinel-controlled
B) flag-controlled
C) EOF-controlled
D) counter-controlled
Correct Answer:
Verified
Q26: After a break statement executes, the program
Q32: What is the output of the following
Q34: The do...while loop has an exit condition
Q35: Suppose sum and num are int variables,
Q37: What is the value of counter after
Q38: A break statement is legal in a
Q38: int i;for (i = 0; i <=
Q39: What is value of x after the
Q40: What is the output of the following
Q41: int x = 27;
Int y = 10;do
X
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents