Mohit Kaushik
Quiz von , erstellt am more than 1 year ago

for loop quiz

13
0
0
Mohit Kaushik
Erstellt von Mohit Kaushik vor fast 9 Jahre
Schließen

FOR Loop

Frage 1 von 2

1

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

Wähle eine der folgenden:

  • 1

  • 10

  • 11

  • compile time error

Erklärung

Frage 2 von 2

1

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

Wähle eine der folgenden:

  • 11

  • 10

  • 0

  • 0123456789

Erklärung