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
Similar Resources on Wayground
17 questions
Unit 4 Flashcard 2

Flashcard
•
9th - 12th Grade
21 questions
Java Flashcard-1

Flashcard
•
KG - University
17 questions
Java Basics

Flashcard
•
12th Grade
16 questions
AP CSA Primitive Types Practice

Flashcard
•
11th Grade
18 questions
AP CSA Unit 1 Review

Flashcard
•
10th - 12th Grade
21 questions
C.P. - Flashcard #2 - Review

Flashcard
•
9th - 12th Grade
16 questions
Loops Flashcard

Flashcard
•
9th - 12th Grade
21 questions
Java Loops

Flashcard
•
KG
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

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

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade