Loops Quiz
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Benjamin EnloeHS
Used 68+ times
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
How many times will the following code print "Welcome to Java"?
int count = 0;
while (count < 10) {
System.out.println("Welcome to Java");
count++;
}
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the output of the following code?
int x = 0;
while (x < 4) {
x = x + 1;
}
System.out.println("x is " + x);
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Analyze the following code.
int count = 0;
while (count < 100) {
// Point A
System.out.println("Welcome to Java!");
count++;
// Point B
}
// Point C
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
How many times will the following code print "Welcome to Java"?
int count = 0;
do {
System.out.println("Welcome to Java");
count++;
} while (count < 10);
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which of the following loops prints "Welcome to Java" 10 times?
for (int count = 1; count <= 10; count++) {
System.out.println("Welcome to Java");
System.out.println("Welcome to Java");
}
System.out.println("Welcome to Java");
}
System.out.println("Welcome to Java");
}
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
The following loop displays _______________.
for (int i = 1; i <= 10; i++) {
System.out.print(i + " ");
i++;
}
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the output for y?
int y = 0;
for (int i = 0; i<10; ++i) {
y += i;
}
System.out.println(y);
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
Already have an account?
Similar Resources on Wayground
13 questions
Podsumowanie: binarny, komputer, sieć
Quiz
•
7th Grade - University
12 questions
Magnitudes Eléctricas
Quiz
•
1st - 10th Grade
16 questions
C-Programming Basics
Quiz
•
12th Grade
20 questions
Repaso TIC- 1º-bach
Quiz
•
11th Grade
12 questions
HTML
Quiz
•
9th - 12th Grade
17 questions
Basic Docs
Quiz
•
8th - 9th Grade
20 questions
BAB BK
Quiz
•
10th Grade
14 questions
Computing figures
Quiz
•
4th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
15 questions
Internet Vocabulary Notebook Check #2 - CTEA(2024)
Quiz
•
12th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
39 questions
UNIT 7 and UNIT 8 — Multiple Choice Question Bank (Extracted)
Quiz
•
9th Grade
50 questions
Money Matters Fall 2025 Final Exam — Worksheet Questions
Quiz
•
12th Grade
47 questions
CSF Final Exam Practice
Quiz
•
9th - 12th Grade
