
For loop & While loop in Java
Flashcard
•
Computers
•
10th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

29 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What does the following code print? Options: 5 6 7 8 9, 4 5 6 7 8 9 10 11 12, 3 5 7 9 11, 3 4 5 6 7 8 9 10 11 12
Back
3 4 5 6 7 8 9 10 11 12
2.
FLASHCARD QUESTION
Front
How many stars are printed? Options: 7, 3, 4, 5, Infinite Loop
Back
4
3.
FLASHCARD QUESTION
Front
How many times does the following method print a *? Options: 9, 6, 7, 10
Back
6
4.
FLASHCARD QUESTION
Front
How many times does the code print a * ?
Back
8
5.
FLASHCARD QUESTION
Front
How many times does this print a * ?
Back
4
6.
FLASHCARD QUESTION
Front
Which of the following loops prints "Welcome to Java" 10 times? Options: A: for (int count = 1; count <= 10; count++) { System.out.println("Welcome to Java"); }, for (int count = 0; count <= 10; count++) { System.out.println("Welcome to Java"); }
Back
for (int count = 1; count <= 10; count++) { System.out.println("Welcome to Java"); }
7.
FLASHCARD QUESTION
Front
The following loop displays _______________.
for (int i = 1; i <= 10; i++) {
System.out.print(i + " ");
}
Back
1 2 3 4 5 6 7 8 9 10
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
CodeHS Python Unit 3 Flashcard Review
Flashcard
•
9th - 12th Grade
25 questions
U2 Database Design Flashcards - Part A
Flashcard
•
11th Grade - University
20 questions
AP CSA unit 1 review
Flashcard
•
11th Grade - University
20 questions
Unit 4: Variables, Conditionals, and Functions (Code.org)
Flashcard
•
11th Grade
22 questions
Fingerprint Flashcard
Flashcard
•
11th Grade
25 questions
Web Design - Unit 2 CodeHS
Flashcard
•
12th Grade
20 questions
CSP Final Review
Flashcard
•
9th - 12th Grade
21 questions
Java Loops
Flashcard
•
KG
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade