wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Basics of Python

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.
What is python?
a)
a programming language 
b)
DTP software 
c)
Spreadsheet software
d)
Computer 
2.

Who created Python programming language ?

a)

Guido van Rossum

b)

Mia Daniels

c)

Binod

d)

Dennis Ritchie

3.

Python is ___________ level programming language and is ___________.

a)

High, compiled

b)

High, interpreted

c)

Low, compiled

d)

Low, interpreted

4.

Which is the Python logo?

a)
b)
c)
d)
5.
What is the name of the environment in Python that write your programs and then test them out?
a)
Shell
b)
Window
c)
IDLE
d)
CLI
6.

What extension is added to a python script file when saving?

a)

.pyt

b)

.pptx

c)

.docx

d)

.py

7.
What symbol is used in python to assign values to a variable?
a)
equals =
b)
plus + 
c)
forward slash /
d)
asterisk *
8.
What would print (10 + 16) produce?
a)
20
b)
22
c)
24
d)
26
9.
What will the output be from the following code?
print("3+4")
a)
7
b)
3+4
c)
34
d)
SyntaxError
10.
What will the output be from the following code?
print(3+4)
a)
3+4
b)
7
c)
SyntaxError
d)
print(3+4)
11.

The correct way to write a variable in python?

a)

my_variables=10

b)

my_variable:10

c)

my variable=10

d)

my_variable is 10

12.

Which of the following is an invalid variable in python?

a)

_Name

b)

StudNme

c)

Stud Name

d)

Stud1Name