Mohit Kaushik
Quiz by , created more than 1 year ago

for loop quiz

13
0
0
Mohit Kaushik
Created by Mohit Kaushik almost 9 years ago
Close

FOR Loop

Question 1 of 2

1

What is the output of the program? int i=1; for( ;i<=10;i++); System.out.print(i);

Select one of the following:

  • 1

  • 10

  • 11

  • compile time error

Explanation

Question 2 of 2

1

What is the output of program?
int i=0;
for(;i<10;i++)
System.out.print(i);

Select one of the following:

  • 11

  • 10

  • 0

  • 0123456789

Explanation