Search Header Logo

Chapter 11: Nested Loops

Authored by Heath Hillman

Computers

University

Used 35+ times

Chapter 11: Nested Loops
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output?

The sum is 0

The sum is 20

The sum is 33

Yoda The sum is

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times does print(y) execute?

1

2

3

never

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output?

10

1 2 3 4 5 6 7 8 9 10

0 1 2 3 4 5 6 7 8 9 10

1 2 3 4 5 6 7 8 9

0 1 2 3 4 5 6 7 8 9

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times does the print(x, y) statement execute?

0

5

16

25

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What code would produce the output?

Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the code print?

Media Image
Media Image
Media Image
Media Image

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output?

[[5, 10, 15], [2, 3, 16], [100], [30, 21, 100]]

[30, 21, 100]

[107]

[[107], [13], [21]]

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?

Discover more resources for Computers