Java Loops

Java Loops

Assessment

Flashcard

Computers

10th - 12th Grade

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

23 questions

Show all answers

1.

FLASHCARD QUESTION

Front

When you know exactly how many times the loop needs to repeat you should use a

Back

for loop

2.

FLASHCARD QUESTION

Front

What is the minimum number of times that ANY for loop will repeat?

Back

0

3.

FLASHCARD QUESTION

Front

What is the minimum number of times that ANY while loop will repeat?

Back

0

4.

FLASHCARD QUESTION

Front

A while loop is initialised with

Back

a set of conditions

5.

FLASHCARD QUESTION

Front

A for loop is initialised with

Back

a counter, a comparison and an increment value

6.

FLASHCARD QUESTION

Front

What does the following code do?
for (int i = 0; i < 50; i++) {
System.out.println(i);
}

Back

Print out the numbers from 0 - 49

7.

FLASHCARD QUESTION

Front

How many times will this loop repeat?
for (int i = 0; i <= 10; i = i + 2) {
System.out.println(i);
}

Back

6

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?