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
7 questions
Computer Science Essentials Vocabulary

Quiz
•
9th - 12th Grade
6 questions
Topic 4.3 Video 1

Quiz
•
11th Grade
10 questions
CS 50 Terminology

Quiz
•
6th - 10th Grade
10 questions
Pseudocode - OCR ERL

Quiz
•
9th - 12th Grade
9 questions
Programming Basics

Quiz
•
10th Grade
10 questions
PRLD - Looping

Quiz
•
12th Grade
9 questions
TLAC Summary: 1. The Prison Break

Quiz
•
12th Grade
10 questions
Python Basics

Quiz
•
8th - 10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade