wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Revision

Total questions: 17

Worksheet time: 9mins

Name
Class
Date
1.

Python is a program for

a)

programming

b)

draw

c)

edit photo

d)

look for information

2.

if x > 5 : (x>5) called ................... statement

a)

answer

b)

question

c)

condition

d)

code

3.

if x > 5 :

in python that sentence is called

a)

while loop

b)

if statement

c)

for loop

d)

print

4.

Look at this picture , what is the answer?

a)

5

b)

10

c)

15

d)

20

5.

x=8

if x > 5:

print(x)

this code will be excuted (run) for :

a)

1 time

b)

3 times

c)

5 times

d)

7 times

6.

print(" my name! ")

the output for this sentence will be

a)

samira

b)

my name

c)

my name !

d)

error

7.

x=2

while x > 3 :

print("hello ")


what is the output?

a)

hello

b)

23

c)

output

d)

error

8.

who is in this photo

a)

a man

b)

a boy

c)

a cat

d)

a girl

9.

while x > 3 :


what is the kind of loop ?

a)

if loop

b)

for loop

c)

while loop

d)

loop loop

10.

for x in range(1,4,1):

print ("hi")

how many times "hi" will be printed

a)

1

b)

2

c)

3

d)

4

11.

x=random.randint(5,10)

x could be equal to :

a)

1

b)

2

c)

5

d)

11

12.

where is this masjed?

a)

Abu Dhabi

b)

Sharjah

c)

Dubai

d)

Ajman

13.

for num in 1,2,3,4,5:

print("i like CS ")

how many times "I like CS" will be printed?

a)

5

b)

10

c)

15

d)

20

14.

if x>0 :

print("big")

else:

print("small"


if (big) was output , x could be equal to:

a)

x

b)

-2

c)

0

d)

9

15.

if x>0 :

print("big")

else:

print("small")


if (small) was the output , x could be equal to:

a)

9

b)

0

c)

2

d)

1

16.

what is your computer teacher name?

a)

Sumaya

b)

Samia

c)

Salwa

d)

Samira

17.

what is the name of programming language you studied this year?

a)

Panther

b)

Python

c)

packet

d)

panadol