Solved

Which of the Following Segments Is a Proper Way to Call

Question 5

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:

verifed

Verified

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

Related Questions