Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python quiz

Total questions: 9

Worksheet time: 2mins

Name
Class
Date
1.

1. Python was developed by

a)

Dennis Ritchie

b)

James Gosling

c)

Guido van Rossum

d)

Bjarne Stroustrup

2.

2. Python was developed in which year?

a)

1956

b)

1976

c)

1984

d)

1989

3.

What is python files extension

a)

.python

b)

.py

c)

.p

d)

.html

4.

Python was written in this language

a)

C

b)

C++

c)

Javascript

d)

Linux

5.

the.py extension is called

a)

package

b)

directory

c)

endlet

d)

module

6.

the command 4+7 will give the output of

a)

12

b)

11

c)

4+7

d)

47

7.

The command 4**2 will give the output

a)

Error

b)

2

c)

16

d)

8

8.

the command x=4 y=6, y*x/2 will give

a)

24

b)

Error

c)

12

d)

"xy/2"

9.

The command banana = fruit, banana will give

a)

banana

b)

fruit

c)

banana fruit

d)

error