
java while loop

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Dara Kirschenbaum-Perry
Used 70+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
12
012
0123
123
01234
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
104
54
44
35
65
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
2
23
234
34
2345
4.
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++;
}
8
9
10
0
5.
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);
x is 0
x is 1
x is 3
x is 4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When a piece of code runs unintentionally forever it is known as
An infinite loop
A long loop
A broken loop
A for loop
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A condition is
a statement that is either True or False
a string
an integer
a list
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python Lists and Strings

Quiz
•
9th Grade
21 questions
Python Strings

Quiz
•
11th Grade
18 questions
8.4 Algorithm Test

Quiz
•
9th Grade
20 questions
Python String

Quiz
•
12th Grade
15 questions
if-else-if and Logical Operators

Quiz
•
9th - 12th Grade
14 questions
Unit 6 Microcontrollers Intro 2022

Quiz
•
11th Grade - University
20 questions
Data Science (Quiz in Python)

Quiz
•
11th Grade
12 questions
Java Strings

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade