wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python Review

Total questions: 6

Worksheet time: 3mins

Name
Class
Date
1.

Extra blank lines between Python code lines will change how the program runs.

a)

True

b)

False

2.

These two lines of code do exactly the same thing.

a)

True

b)

False

3.

These two lines of code do exactly the same thing.

a)

True

b)

False

4.

What would:

print(Style.bold + Colour.blue + "Red")

display on the screen?

a)
b)
c)
d)
5.

How would we display it on the screen?

a)

print(red + "A" + blue + "B")

b)

print("A" + Colour.red + "B" + Colour.blue + Highlight.cyan)

c)

print ( " redAblueB")

d)

print(Colour.red + "A" + Colour.blue + Highlight.cyan + "B")

6.

Which of the following statement is true about the module? 

a)

CSINSC is an example of the module

b)

The module is a collection of source files

c)

modules provide reusability of code

d)

All above are correct