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;
}
```
d)```
int i;
i = 0;
while (i < 4)
{
readData();
i = i + 1;
}
```
Computer Science & Information Technology
You might also like to view...
What is the most common cause for digital noise in an image?
What will be an ideal response?
Computer Science & Information Technology
Fire suppression systems typically work by denying an environment one of the three requirements for a fire to burn: a match, fuel, and oxygen.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology