Multiple Choice
Which of the following segments will call the method readData four times
A) int k;
k = 1;
While (k < 4)
{
ReadData() ;
K = k + 1;
}
B) int i;
i = 0;
While (i < =4)
{
ReadData() ;
i= i + 1;
}
C) int i;
i = 0;
while (i < 4)
{
readData() ;
}
D) int i;
i = 0;
While (i < 4)
{
ReadData() ;
I = i + 1;
}
Correct Answer:

Verified
Correct Answer:
Verified
Q22: When you know how many times a
Q23: Sequential execution is when statements execute one
Q24: C and C++ are _ typed languages.<br>A)strongly<br>B)moderately<br>C)weakly<br>D)the
Q26: A while statement allows you to specify
Q28: Counter-controlled repetition is often called definite repetition
Q29: Which statement is false<br>A) To ensure that
Q30: The if statement is a repetition statement.
Q31: if is a _ statement.<br>A) restricted<br>B) selection<br>C)
Q32: A transfer of control occurs when:<br>A) a
Q39: What is the size in bits of