Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Brain Teaser

Total questions: 6

Worksheet time: 3mins

Name
Class
Date
1.

How do you print a statement in python?

a)

Print

b)

prinT

c)

print

2.

What is the difference between lists and tuples in python?

a)

Lists are mutable and tuples immutable

b)

Lists are immutable and tuples are mutable

c)

None of the above

3.

What are the key features of python?

a)

It is easy to code

b)

It's a free and open source

c)

It's an object-oriented language

d)

All of the above

4.

What type of language is python?

a)

It's a high level programming language

b)

It's a secret language

c)

It's used to hack video games

5.

How is python a interpreted language?

a)

It's not interpreted

b)

People understand the code that is interpreted

c)

It goes through an interpreter

6.

Who is memory managed in python?

a)

Python has a brain

b)

The Python memory manager manages chunks of memory called “Blocks”. A collection of blocks of the same size makes up the “Pool”. Pools are created on Arenas, chunks of 256kB memory allocated on heap=64 pools. If the objects get destroyed, the memory manager fills this space with a new object of the same size.

c)

Python has someone/something memorize everything