wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

مراجعة في الجملة التكرارية for

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

what is the output

for x in range(3):print("Hello")

a)

Hello

b)

Hello

Hello

c)

Hello

Hello

Hello

2.

what is the output

for x in range(2,10,3):print("Hello")

a)

Hello

b)

Hello

Hello

c)

Hello

Hello

Hello

3.

what is the output

for x in range(2,3):print("Hello")

a)

Hello

b)

Hello

Hello

c)

Hello

Hello

Hello

4.

what is the output

listii=[1,2,3,4]

for x in listii :print("Hello")

a)

Hello

Hello

Hello

Hello

b)

1

2

3

4

c)

[1,2,3,4]

5.

what is the output

listii=[1,2,3,4]

for x in listii :print(x)

a)

Hello

Hello

Hello

Hello

b)

1

2

3

4

c)

[1,2,3,4]

6.

what is the output

listii=[1,2,3,4]

for x in listii :print(x+1)

a)

2

3

4

5

b)

1

2

3

4

c)

[1,2,3,4]

7.

what is the output

Name="Mohamed"

for x in Name :print(x)

a)

M

o

h

a

m

e

d

b)

Mohamed

c)

Mohamed

Mohamed

Mohamed

Mohamed

Mohamed

Mohamed

8.

what is the output

Name="Mohamed"

for x in Name :

print(x+"od")

a)

Mod

hod

aod

mod

eod

dod

b)

M

h

a

m

e

d

c)

Mohamed

9.

what is the output

fruit=["berry","cherry","Mango"]

count=0

for x in fruit :

if x[-1]=="y": count+=1

print(count,"times the fruit ended with letter y")

a)

One, times the fruit ended with letter y

b)

2 times the fruit ended with letter y

c)

2

10.

what is the output

fruit=["berry","cherry","Mango"]

count=0

for x in fruit :

if len(x)>5: count+=1

print(count)

a)

5

b)

2

c)

1