Java Loops

Java Loops

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

12 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What will the output of the following code segment be?
int a = 1, b = 2;
System.out.println(++a+”,”+b++);

Back

2,2

2.

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

3.

FLASHCARD QUESTION

Front

In the expression number++, the ++ operator is in what mode?

Back

postfix

4.

FLASHCARD QUESTION

Front

What is each repetition of a loop known as?

Back

iteration

5.

FLASHCARD QUESTION

Front

This is a variable that controls the number of iterations performed by a loop.

Back

loop control variable

6.

FLASHCARD QUESTION

Front

The while loop is this type of loop.

Back

pretest

7.

FLASHCARD QUESTION

Front

The do-while loop is this type of loop.

Back

posttest

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?