FOR Loop

Question 1 of 2

Medal-premium 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

Question 2 of 2

Medal-premium 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

Icon_fullscreen
Mohit Kaushik
Quiz by , created over 1 year ago

for loop quiz

Eye 6
Pin 0
Balloon-left 0
Tags
Mohit Kaushik
Created by Mohit Kaushik over 1 year ago
Close