Java Loops

Java Loops

Assessment

Flashcard

Computers

10th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?