Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python quiz 1

Total questions: 7

Worksheet time: 4mins

Name
Class
Date
1.

Python is a

a)

text language

b)

database language

c)

programming language

2.

Code for Hello, World!

a)

print Hello, World!

b)

print("Hello, World!)

c)

print("Hello, World!")

3.

Insert the missing part of the code below to output

_________________ "My name is ".

a)

Print

b)

PRINT

c)

print

4.

Python language use

a)

upper case letters

b)

lower case letters

c)

upper and lower case letters

5.

The output of the program

x = 4

x = "Sally"

print(x)

a)

four

b)

Saly

c)

Sally

6.
What will be the output?
name = 'Dave'
print (name)
a)
Dave
b)
'Dave'
c)
name
d)
(name)
7.
What will be the output?
name = 'Dave'
greeting = "Good morning" + name
print (greeting)
a)
Good moning 'Dave'
b)
Good morning Dave
c)
Good morning name
d)
Good morning + Dave