Java Loops

Java Loops

Assessment

Flashcard

Information Technology (IT)

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground 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?

Media Image

Back

Don't know, depends upon a random number

7.

FLASHCARD QUESTION

Front

What is the final sum after this loop executes?

Media Image

Back

sum = 10

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?