Java while loops

Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Claire Firman
Used 17+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Pseudocode WHILE Loops

Quiz
•
10th - 12th Grade
10 questions
LO13_Lesson 5

Quiz
•
10th Grade
10 questions
Chapter 04 Worksheet

Quiz
•
10th Grade
8 questions
For Loop Quiz

Quiz
•
11th Grade
10 questions
Year 8 Quiz 1

Quiz
•
9th - 12th Grade
10 questions
Python Basic files

Quiz
•
10th - 12th Grade
10 questions
GDScript Quiz - Lesson 3 - Conditional statements & Iteration

Quiz
•
12th Grade
9 questions
Instructiuni Repetitive C++

Quiz
•
10th 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
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
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade