Loops Quiz

Loops Quiz

11th Grade

22 Qs

quiz-placeholder

Similar activities

Python Quiz For Starters

Python Quiz For Starters

3rd Grade - Professional Development

17 Qs

Django-quiz

Django-quiz

5th Grade - University

20 Qs

Python - Quiz 2

Python - Quiz 2

10th - 11th Grade

20 Qs

Access Básico 2

Access Básico 2

8th - 12th Grade

20 Qs

Samsung Galaxy S9

Samsung Galaxy S9

1st Grade - Professional Development

18 Qs

ÔN TẬP CUỐI KỲ II TIN 8

ÔN TẬP CUỐI KỲ II TIN 8

8th - 11th Grade

17 Qs

vlan aij xii

vlan aij xii

11th Grade

18 Qs

Javascript

Javascript

11th Grade

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