Java Unit 4 Iteration

Java Unit 4 Iteration

Assessment

Flashcard

Computers

11th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

9 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following is considered a pre-test loop? do while, if-while, while, if-else

Back

while

2.

FLASHCARD QUESTION

Front

What is the output of the code above?

Media Image

Back

1 2 4 8 16 32

3.

FLASHCARD QUESTION

Front

What will be the output of the code? Options: ERROR, 5 4 3 2 1 Blast off, 5 Blast off 4 Blast off 3 Blast off 2 Blast off 1 Blast off, Blast off

Media Image

Back

5 4 3 2 1 Blast off

4.

FLASHCARD QUESTION

Front

How many times will the inner for loop iterate?

Media Image

Back

6, six

5.

FLASHCARD QUESTION

Front

How many stars are printed? Options: 7, 3, 4, 5, Infinite Loop

Media Image

Back

4

6.

FLASHCARD QUESTION

Front

What will the following program segment display?
for(int a = 2; a <= 10; a += 3)
System.out.print(a+"");
Options: 2 5 8, 2 5, 2 5 8 11, 2

Back

2 5

7.

FLASHCARD QUESTION

Front

What does the following loop print?
for(int i = 1; i<3; i++)
{ System.out.print(i); }

Back

12

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?