Multiple Choice
Which of the following segments is a proper way to call the method readData four times?
A) double k = 0.0;
While ( k != 4 )
{
ReadData() ;
K = k + 1;
} // end while
B) int i = 0;
While ( i <= 4 )
{
ReadData() ;
I = i + 1;
} // end while
C) int i = 0;
While ( i < 4 )
{
ReadData() ;
} // end while
D) int i = 0;
While ( i < 4 )
{
ReadData() ;
I = i + 1;
} // end while
Correct Answer:

Verified
Correct Answer:
Verified
Q3: Sentinel-controlled repetition is also known as:<br>A)Definite repetition.<br>B)Indefinite
Q6: Which statement is false?<br>A)Both syntax errors and
Q7: How many times is the body of
Q9: What is output by the following Java
Q10: What is output by the following Java
Q11: Which of the following operators associates from
Q22: Which of the following is not a
Q27: Which of the following is true?<br>A) Pseudocode
Q33: Which of the following is not a
Q35: Which of the following is a double-selection