Loops Quiz

Loops Quiz

11th Grade

22 Qs

quiz-placeholder

Similar activities

CS Terms and Vocab Practice Quiz 3

CS Terms and Vocab Practice Quiz 3

7th - 12th Grade

20 Qs

ADMINISTRASI INFRASTUKTUR JARINGAN (AIJ) - XI TKJ A

ADMINISTRASI INFRASTUKTUR JARINGAN (AIJ) - XI TKJ A

11th Grade

20 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

Fundamentals in RobotC

Fundamentals in RobotC

9th - 12th Grade

25 Qs

TJBL XI TKJ

TJBL XI TKJ

11th Grade

20 Qs

Animated Canvas

Animated Canvas

9th - 12th Grade

19 Qs

Python List, and String

Python List, and String

10th Grade - University

20 Qs

Animation: Symbols

Animation: Symbols

10th - 12th Grade

18 Qs

Loops Quiz

Loops Quiz

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

Garrett Baltzer

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A while loop has the following format:

while (condition)

{

...

}

while

{

...

}

continue while (condition)

{

...

}

while [condition]

[

...;

]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A while loop carries on as long as...

The condition in the brackets is true

The condition in the brackets is false

i < 10

the for loop has not ended

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

OUTPUT?

int i = 1;

while (i < 5) {

System.out.println("Hello");

i++;

}

Hello

Hello

Hello

Hello

Hello

Hello

Hello

Hello

Hello

Hello

Hello

Hello

Hello

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many stars are printed?

7

3

4

5

Infinite Loop

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In total, how many times is the inner loop executed?

5

10

15

50

Infinite Loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following code print?

A rectangle of 9 rows with 5 stars per row

A rectangle of 6 rows with 6 stars per row

A rectangle of 7 rows with 5 stars per row

A rectangle of 7 rows with 6 stars per row

Infinite Loop

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True/False
If a loop condition is never satisfied then the loop does not execute.

True
False

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?