
LOOP
Authored by Magiel Boncayao
Information Technology (IT)
11th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop is guaranteed to execute at least once?
A) for loop
B) while loop
C) do-while loop
Enhanced for loop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following WHILE loop?
int x = 5;
while (x > 0){
System.out.print(x + " ");
x--
}
A) 5 4 3 2 1 0
B) 5 4 3 2 1
C) 4 3 2 1 0
D) Infinite loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between a while loop and a do-while loop?
A) while checks the condition before execution; do-while checks after.
B) while runs at least once; do-while may not run at all.
C) do-while is faster than while.
D) There is no difference.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times will this loop execute?
int i = 5; while (i < 5) { System.out.println("Hello"); i++; }
A) 0
B) 1
C) 5
D) Infinite
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if the condition in a while loop is always true?
A) The loop runs once.
B) The loop runs a finite number of times.
C) The loop becomes infinite.
D) Compilation error.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
int x = 1; do { System.out.print(x + " "); x++; } while (x <= 3);
A) 1 2 3
B) 1 2
C) 2 3
D) Infinite loop
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop is this an example of?
int i = 0; do { System.out.println(i); i++; } while (i < 5);
A) for loop
B) do-while loop
C) while loop
D) if-else loop
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
Asesmen Harian 1
Quiz
•
11th Grade - University
10 questions
高二資訊課補考題目
Quiz
•
11th Grade - University
10 questions
XI - BAB 4 - Membangun Berbagai Aplikasi Mobile - Pengantar
Quiz
•
11th Grade
10 questions
Algoritma dan Pemrograman (Array dan String)
Quiz
•
11th Grade
12 questions
Review loops
Quiz
•
8th Grade - University
10 questions
10 ARTIFICIAL INTELLIGENCE
Quiz
•
10th Grade - University
10 questions
Syntax Dasar C++ #1
Quiz
•
11th Grade
15 questions
Data Literacy Quizizz
Quiz
•
6th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade