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

23 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which kind of loop would be used for a program that will keep letting me add a monthly payment for 12 months?
Back
FOR Loop
2.
FLASHCARD QUESTION
Front
Which kind of loop would be used for a guessing game program that allows continuous guessing until the right answer is found?
Back
WHILE Loop
3.
FLASHCARD QUESTION
Front
Which kind of loop would be used to keep adding money to a piggy bank until reaching $100?
Back
WHILE Loop
4.
FLASHCARD QUESTION
Front
What is the symbol used for the INCREMENT operator?
Back
++
5.
FLASHCARD QUESTION
Front
How many times will the following code print "Welcome to Java"?
int count = 0;
while (count < 10) {
System.out.println("Welcome to Java");
count++;
}
Back
10
6.
FLASHCARD QUESTION
Front
How many times will this loop execute? Options: 50 times, 1 time, 100 times, Don't know, depends upon a random number
Back
Don't know, depends upon a random number
7.
FLASHCARD QUESTION
Front
What is the final sum after this loop executes? Options: sum = 5, sum = 10, sum = 15
Back
sum = 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
15 questions
Understanding Frequency and Relative Frequency
Flashcard
•
9th - 12th Grade
15 questions
Venn Diagrams
Flashcard
•
9th - 12th Grade
15 questions
Dec 11 B1 BW Tree diagrams and counting principle
Flashcard
•
9th - 12th Grade
15 questions
Positive and Negative Feedback Loops
Flashcard
•
9th - 12th Grade
20 questions
Computer Science
Flashcard
•
9th - 12th Grade
15 questions
Balancing Chemical Equations
Flashcard
•
10th - 12th Grade
19 questions
Biotechnology
Flashcard
•
9th - 12th Grade
15 questions
Atomic Theory, Structure, and Mass
Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade