Search Header Logo

Python - Loops, Patterns & List manipulations

Authored by Rajath Vijayakumar

Computers

11th Grade

Used 6+ times

Python - Loops, Patterns & List manipulations
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following correctly represents a Python for loop syntax?

for i in range(10):

foreach i in range(10):

for (i = 0; i < 10; i++):

for i to 10:

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What does the following code snippet print?

1 2 3

0 1 2 3

0 1 2

1 2

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of the following code?

0 0, 1 1, 2 2

0 0, 0 1, 1 0, 1 1, 2 0, 2 1

0 1, 1 2

Error

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

How many times will the following loop execute?

2

3

5

6

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the correct way to skip the current iteration in a loop?

break

continue

pass

None of the above

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What pattern is printed by this code?

Media Image
Media Image

None of the above

Media Image

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Which of the following will generate the pattern below?

Media Image
Media Image

Both a and b

None of the above

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?