FOR Loop

Mohit Kaushik
Quiz by Mohit Kaushik, updated more than 1 year ago
Mohit Kaushik
Created by Mohit Kaushik almost 6 years ago
9
0

Description

for loop quiz

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
AQA Physics P1 Quiz
Bella Statham
AQA Biology B2 Questions
Bella Statham
GCSE AQA Biology 1 Quiz
Lilac Potato
AQA Biology B1 Questions
Bella Statham
AQA GCSE Product Design Questions
Bella Statham
Marketing - Business Studies
EMI D
Waves
kate.siena
General Knowledge Quiz
Andrea Leyden
CCNA Security 210-260 IINS - Exam 1
Mike M