

Java Loops
Flashcard
•
Computers
•
10th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

23 questions
Show all answers
1.
FLASHCARD QUESTION
Front
When you know exactly how many times the loop needs to repeat you should use a
Back
for loop
2.
FLASHCARD QUESTION
Front
What is the minimum number of times that ANY for loop will repeat?
Back
0
3.
FLASHCARD QUESTION
Front
What is the minimum number of times that ANY while loop will repeat?
Back
0
4.
FLASHCARD QUESTION
Front
A while loop is initialised with
Back
a set of conditions
5.
FLASHCARD QUESTION
Front
A for loop is initialised with
Back
a counter, a comparison and an increment value
6.
FLASHCARD QUESTION
Front
What does the following code do?
for (int i = 0; i < 50; i++) {
System.out.println(i);
}
Back
Print out the numbers from 0 - 49
7.
FLASHCARD QUESTION
Front
How many times will this loop repeat?
for (int i = 0; i <= 10; i = i + 2) {
System.out.println(i);
}
Back
6
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 Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?