
MCQs on Iterative Statements in Java
Quiz
•
Information Technology (IT)
•
University
•
Hard
Geshani ITUM
Used 19+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which statement is used for looping in Java?
if-else
while
switch
try-catch
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is another term for iterative statements in Java?
Decision-making statements
Looping statements
Jump statements
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will the following while loop print? int i = 1; while (i <= 3) { System.out.println(i); i++; }
123
1 2 3
3 2 1
Infinite loop
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
How does a do-while loop differ from a while loop?
A do-while loop does not use conditions
A do-while loop executes at least once
A do-while loop is faster
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which keyword is used to exit a loop prematurely?
exit
stop
break
return
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the output of the following code? for (int i = 0; i < 3; i++) { System.out.print(i + " "); }
0 1 2
0 1 2 3
1 2 3
Compilation error
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
A nested for loop is used when:
We want to iterate only once
Multiple iterations depend on each other
We have conditional statements
None of the above
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
12 questions
CLC Lesson 1,2 and 3 Quiz
Quiz
•
University
15 questions
LibreOffice Writer Styles Quiz
Quiz
•
10th Grade - University
15 questions
Java_MCQ_3
Quiz
•
University
15 questions
ITEC101 - Quiz 2
Quiz
•
University
15 questions
Chapter 3 : SQL Command
Quiz
•
University
22 questions
Internet and App script
Quiz
•
5th Grade - University
20 questions
LogoNOVA (FYIT Logo Quiz)
Quiz
•
University
15 questions
SOFAPP MIDTERM RECITATION
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
