
Java while loops
Authored by Claire Firman
Computers
10th - 12th Grade
Used 17+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
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
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
A while loop has the following format:
while (condition)
{
...
}
while
{
...
}
continue while (condition)
{
...
}
while [condition]
[
...;
]
3.
MULTIPLE SELECT QUESTION
45 sec • 5 pts
A condition in Javacould be any of the following:
a >, <, ==, >=, <= relation
str1.equals(str2)
str1.equalsIgnoreCase(str2)
str.length()
4.
MULTIPLE SELECT QUESTION
45 sec • 5 pts
While loops are used when ...
You are not sure how many times exactly a loop should iterate
You want a loop to repeat while the condition is true
You don't like for loops
You don't like to wait for things
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
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
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
While loops are not really important or necessary in Java
True
False
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
Bài 8 - Câu lệnh lặp For - Cánh diều Python
Quiz
•
10th Grade
10 questions
Programacion Orientada a Objetos
Quiz
•
12th Grade - University
10 questions
PF Unit 10
Quiz
•
9th Grade - University
10 questions
BTEC DIT C3 LAA - Maintenance, Set up, Performance
Quiz
•
10th - 11th Grade
10 questions
🔦 Formative Assessment 2: Flow Controls
Quiz
•
12th Grade
10 questions
Microsoft MDM & Apps
Quiz
•
10th Grade
10 questions
Kampyuter Tarmoqlari Bo'yicha Test
Quiz
•
8th Grade - University
11 questions
GCSE Computer Science Paper 2: Topic 2.1
Quiz
•
10th 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
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