Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Programming Quiz

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Python is a __________ language.

a)

Low-level

b)

Machine

c)

High-level

d)

Assembly

2.

Python is easy to learn because it has:

a)

Difficult symbols

b)

Simple syntax

c)

Long commands

d)

Only numbers

3.

Python programs are easy to read because they use:

a)

English-like words

b)

Only numbers

c)

Codes only

d)

Symbols only

4.

Python is an example of a:

a)

Non-programming language

b)

Programming language

c)

Markup language

d)

Hardware language

5.

Python can be used to make:

a)

Games

b)

Websites

c)

Applications

d)

All of these

6.

Which of the following is NOT an application of Python?

a)

Web development

b)

Game development

c)

Cooking food

d)

Data analysis

7.

Python is used in schools mainly to:

a)

Draw pictures

b)

Teach programming

c)

Repair computers

d)

Play music

8.

Python is popular because it is used in:

a)

Science

b)

Artificial Intelligence

c)

Data Science

d)

All of these

9.

A variable is used to:

a)

Store data

b)

Print data

c)

Delete data

d)

Draw data

10.

Which symbol is used to assign a value to a variable in Python?

a)

==

b)

=

c)

+

d)

:

11.

Which is a correct variable name?

a)

1name

b)

my-name

c)

my_name

d)

my name

12.

What will be the value of x? x = 10

a)

x

b)

0

c)

10

d)

None

13.

Which data type is used to store whole numbers?

a)

float

b)

string

c)

int

d)

bool

14.

Which of these is a string?

a)

25

b)

3.5

c)

"Hello"

d)

True

15.

Which data type stores True or False?

a)

int

b)

string

c)

float

d)

bool

16.

What is the data type of 5.6?

a)

int

b)

float

c)

string

d)

bool

17.

Which of the following is an output statement in Python?

a)

input()

b)

print()

c)

int()

d)

type()

18.

Python programs are written using:

a)

Compiler only

b)

Interpreter

c)

Printer

d)

Scanner

19.

Which part of Python shows errors while running the program?

a)

Keyboard

b)

Monitor

c)

Interpreter

d)

Mouse

20.

Which component is used to type Python code?

a)

Text editor

b)

Speaker

c)

Printer

d)

Scanner