Java Loops

Java Loops

Assessment

Flashcard

Information Technology (IT)

9th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

63 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 for a program that keeps letting me add money to a piggy bank until I get to $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?

Back

Don't know, depends upon a random number

7.

FLASHCARD QUESTION

Front

What is the final sum after this loop executes?

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?