wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Python is a:

a)

Hardware device

b)

Operating system

c)

Programming language

d)

Web browser

2.

Python was created by:

a)

Dennis Ritchie

b)

Guido van Rossum

c)

James Gosling

d)

Tim Berners-Lee

3.

Python is mainly used for:

a)

Washing clothes

b)

Playing music only

c)

Writing computer programs

d)

Printing documents

4.

Which symbol is used to write comments in Python?

a)

//

b)

/* */

c)

#

d)
5.

Which function is used to display output in Python?

a)

input()

b)

print()

c)

show()

d)

display()

6.

Which of the following is the correct way to print Hello in Python?

a)

print(Hello)

b)

print"Hello"

c)

print("Hello")

d)

echo("Hello")

7.

Python is a:

a)

Low-level language

b)

Machine language

c)

High-level language

d)

Assembly language

8.

Which of the following is used to take input from the user in Python?

a)

get()

b)

input()

c)

read()

d)

scan()

9.

Python programs are saved with which extension?

a)

.pt

b)

.py

c)

.pn

d)

.html

10.

Which of the following is NOT a feature of Python?

a)

Easy to learn

b)

Simple syntax

c)

Platform independent

d)

Very difficult to understand