Python - Loops, Patterns & List manipulations

Python - Loops, Patterns & List manipulations

11th Grade

15 Qs

quiz-placeholder

Similar activities

Tin 8/1

Tin 8/1

KG - University

10 Qs

ZOOM QUIZ

ZOOM QUIZ

1st - 12th Grade

10 Qs

Tin học 10 _ Bài 16 _Định dạng văn bản

Tin học 10 _ Bài 16 _Định dạng văn bản

10th - 12th Grade

10 Qs

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

11th Grade

10 Qs

Bài 10-Thực hành khai thác tài nguyên trên Internet

Bài 10-Thực hành khai thác tài nguyên trên Internet

10th - 12th Grade

10 Qs

Microcontroller

Microcontroller

11th Grade - University

10 Qs

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

Bài 2-Vai trò của thiết bị thông minh và tin học đối với xã hội

Bài 2-Vai trò của thiết bị thông minh và tin học đối với xã hội

10th - 12th Grade

10 Qs

Python - Loops, Patterns & List manipulations

Python - Loops, Patterns & List manipulations

Assessment

Quiz

Computers

11th Grade

Practice Problem

Medium

Created by

Rajath Vijayakumar

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

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?