For Loop Python_2024

For Loop Python_2024

Professional Development

20 Qs

quiz-placeholder

Similar activities

For Loop-Python

For Loop-Python

Python: For loops

Python: For loops

python (loops)

python (loops)

For Loop python

For Loop python

for loop python

for loop python

Python for loop

Python for loop

For Loop Python_2024

For Loop Python_2024

Assessment

Quiz

Computers

Professional Development

Medium

Created by

reda mohamed

Used 457+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Look at the following code, what will it generate

1,2,3,4,5,6,7,8,9,10,11,12

0,1,2,3,4,5,6,7,8,9,10,11,12

1,2,3,4,5,6,7,8,9,10,11,12,13

0,1,2,3,4,5,6,7,8,9,10,11,12,13

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following program display?

1,2,3,4

1,2,3,4,5

counter,counter,counter,counter,counter

0,1,2,3,4,5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Media Image
Media Image
Media Image

1,2,3,4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

#What is the output?

1,2,3,4,5

0,1,2,3,4

1,2,3,4

5,4,3,2,1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

#How many hallos will be printed?

5

None

4

6

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

#What is the output?

a, b, c, d, e

a, a, a, a, a

0,1,2,3,4

e, d, c, b, a

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How many times does the following program print the word ‘computer’:

word= "computer"  
for num in range(1,6):
 
    print(word)

5
6
1
0

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

Already have an account?