PYTHON (FOR LOOP)

PYTHON (FOR LOOP)

1st - 10th Grade

10 Qs

quiz-placeholder

Similar activities

Azure AI Custom Vision

Azure AI Custom Vision

2nd Grade

10 Qs

Module 4 - Electronic Spreadsheet

Module 4 - Electronic Spreadsheet

5th Grade

10 Qs

Mengenal Jendela dan Ikon Microsoft Excel

Mengenal Jendela dan Ikon Microsoft Excel

7th Grade - University

15 Qs

G2_MS Word Basic Parts

G2_MS Word Basic Parts

2nd Grade

10 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

Digitalna pismenost 5

Digitalna pismenost 5

6th Grade

10 Qs

Kiểm tra TX tin 8

Kiểm tra TX tin 8

8th Grade

10 Qs

Be4PSPM 1

Be4PSPM 1

1st - 5th Grade

10 Qs

PYTHON (FOR LOOP)

PYTHON (FOR LOOP)

Assessment

Quiz

Computers

1st - 10th Grade

Practice Problem

Medium

Created by

Shilpa Thakur

Used 111+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 20 pts

Choose the correct output of the following code.

for i in range(10,15):       

print(i)

10

11

12

13

14

10

11

12

13

14

15

11

12

13

14

Error

2.

MULTIPLE CHOICE QUESTION

1 min • 20 pts

What is the output of the following:-

x = "123"

for i in x:

print("a")

x

1

a

1

2

3

x

1

2

3

a

a

a

3.

OPEN ENDED QUESTION

2 mins • 20 pts

Q3. Write a for loop so that every item in the list is printed.

lst=["koala", "cat", "fox", "panda", "chipmunk", "sloth", "penguin", "dolphin"]

Evaluate responses using AI:

OFF

4.

MULTIPLE CHOICE QUESTION

1 min • 20 pts

Q4. What is the output of the following:-

print(list(range(10)))

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

[1,2,3,4,5,6,7,8,9,10]

[2,3,4,5,6,7,8,9,10,11]

[0,1,2,3,4,5,6,7,8,9,10]

5.

MULTIPLE CHOICE QUESTION

1 min • 20 pts

Choose the correct answer

for i in "python":

print(i, end=='?')

Error

p?

y?

t?

h?

o?

n?

p?y?t?h?o?n?

both b and c

6.

OPEN ENDED QUESTION

2 mins • 20 pts

Find the error and correct it

i=2

for x in (i):

x+=1

print(x)

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

30 sec • 20 pts

What is for loop.

Evaluate responses using AI:

OFF

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?