Solved

Which of the Following Segments Is a Proper Way to Call

Question 16

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;
}
B) int i = 0;
While (i <= 4) {
ReadData() ;
I = i + 1;
}
C) int i = 0;
While (i < 4) {
ReadData() ;
}
D) int i = 0;
While (i < 4) {
ReadData() ;
I = i + 1;
}

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions