
For loop & While loop in Java

Flashcard
•
Computers
•
10th - 12th Grade
•
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
Similar Resources on Wayground
21 questions
Java Flashcard-1

Flashcard
•
KG - University
20 questions
Python - List and Tuples

Flashcard
•
11th - 12th Grade
20 questions
Strings, Lists & Tuples

Flashcard
•
9th - 12th Grade
18 questions
Java Arrays

Flashcard
•
9th - 12th Grade
15 questions
Intro to Java Loops

Flashcard
•
9th - 12th Grade
25 questions
Introduction to Python

Flashcard
•
9th - 10th Grade
22 questions
Java Methods flashcard 2024

Flashcard
•
10th - 12th Grade
25 questions
Intro to CS Unit 3 Review

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th 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
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade