Quiz on Repetition with Loops
Test your knowledge of repetition with loops.
We'll cover the following...
1
What is the result when the following program is executed?
class Test
{
public static void main( String args[])
{
for (int i = 0; i < 3; i ++)
{
System.out.print(i + " ");
}
}
}
A)
1 2 3
B)
0 1 2
C)
3 2 1
D)
3
Question 1 of 60 attempted
...
Access this course and 1400+ top-rated courses and projects.