FOR Loop

Description

for loop quiz
Mohit Kaushik
Quiz by Mohit Kaushik, updated more than 1 year ago
Mohit Kaushik
Created by Mohit Kaushik almost 10 years ago
19
0
1 2 3 4 5 (0)

Resource summary

Question 1

Question
What is the output of the program? int i=1; for( ;i<=10;i++); System.out.print(i);
Answer
  • 1
  • 10
  • 11
  • compile time error

Question 2

Question
What is the output of program? int i=0; for(;i<10;i++) System.out.print(i);
Answer
  • 11
  • 10
  • 0
  • 0123456789
Show full summary Hide full summary

0 comments

There are no comments, be the first and leave one below:

Similar

quiz
Amon Saad
AQA Biology B1 Questions
Bella Statham
AQA Biology B2 Questions
Bella Statham
AQA Physics P1 Quiz
Bella Statham
GCSE AQA Biology 1 Quiz
Lilac Potato
AQA GCSE Product Design Questions
Bella Statham
Waves
kate.siena
General Knowledge Quiz
Andrea Leyden
Biology - B2 - AQA - GCSE - Exam Style Questions
Josh Anderson
Computer science quiz
Ryan Barton