Search Header Logo

For Loop Python_2024

Authored by reda mohamed

Computers

Professional Development

Used 457+ times

For Loop Python_2024
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?