Loops Quiz
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
Garrett Baltzer
FREE Resource
Enhance your content in a minute
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A while loop has the following format:
while (condition)
{
...
}
while
{
...
}
continue while (condition)
{
...
}
while [condition]
[
...;
]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A while loop carries on as long as...
The condition in the brackets is true
The condition in the brackets is false
i < 10
the for loop has not ended
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
OUTPUT?
int i = 1;
while (i < 5) {
System.out.println("Hello");
i++;
}
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many stars are printed?
7
3
4
5
Infinite Loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In total, how many times is the inner loop executed?
5
10
15
50
Infinite Loop
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code print?
A rectangle of 9 rows with 5 stars per row
A rectangle of 6 rows with 6 stars per row
A rectangle of 7 rows with 5 stars per row
A rectangle of 7 rows with 6 stars per row
Infinite Loop
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True/False
If a loop condition is never satisfied then the loop does not execute.
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
20 questions
TIN HỌC 11 KNTT- TX1-HK2
Quiz
•
11th Grade
20 questions
Unit-1 Computational Thinking
Quiz
•
9th - 12th Grade
20 questions
UH1_INFO_XII
Quiz
•
11th Grade
20 questions
programlama temelleri - kodlamaya hazırlık
Quiz
•
10th - 12th Grade
20 questions
TLJ 03-04-2020
Quiz
•
11th Grade
20 questions
SaaS
Quiz
•
11th Grade
22 questions
A+404 - Network Troubleshooting
Quiz
•
10th Grade - University
17 questions
Первое весеннее занятие
Quiz
•
1st - 12th Grade
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
