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 9 years ago
13
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

Similar

Translations and transformations of functions
Christine Laurich
quiz
Amon Saad
Biology - B2 - AQA - GCSE - Exam Style Questions
Josh Anderson
Computer science quiz
Ryan Barton
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