wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Dreamspace 3: Python

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is the symbol used for addition?

a)

+

b)

/

c)

-

d)

*

2.

What is the symbol used for subtraction?

a)

%

b)

/

c)

-

d)

*

3.

What is the symbol used for multiplication?

a)

%

b)

/

c)

-

d)

*

4.

What is the symbol used for division?

a)

%

b)

/

c)

-

d)

*

5.

What is the symbol used for modulus?

a)

%

b)

/

c)

-

d)

*

6.

What is the command for text input?

a)

basic.show_icon

b)

basic.show_string

c)

basic.show_number

d)

basic.show_arrow

7.

What is the command for numerical input?

a)

basic.show_icon

b)

basic.show_string

c)

basic.show_number

d)

basic.show_arrow

8.

What is the command for numerical input?

a)

basic.show_icon

b)

basic.show_string

c)

basic.show_number

d)

basic.show_arrow

9.

If I wanted to display a TORTOISE on my microbit, which command would I be using.

a)

basic.show_icon

b)

basic.show_string

c)

basic.show_number

d)

basic.show_arrow

10.

Why will the following command give me an error?

basic.show_sting(SWORDS)

a)

That is not the command for text

b)

You need to include quotation marks around the text

c)

There is an incorrect spelling in the command

11.

Why is on_button_pressed_a underlined?

a)

There is a spelling error

b)

It is the incorrect command for pressing a button

c)

It is not the correct name to call on our function

12.

Why will the following command give me an error?

basic.show_sting(“4/2”)

a)

That is not the command for numerical inputs

b)

You need to exclude quotation marks around the numbers

c)

This is not an operation we can apply to numbers

13.

Why will running this code give you an error?

a)

There are errors in the string, arrow and number code

b)

It is the incorrect command for pressing a button

c)

It is not the correct name to call on our function

14.

When creating a loop, what does the number 2 mean in line 16 (for i in range (2))?

a)

The 2 matches with practice 2. It’s calling on the function

b)

The microbit will repeat the commands twice

c)

When you press run, it’s the second piece of code the microbit runs

15.

What should on_gesture_shake be replaced with?

a)

Temperature monitor

b)

temperatureMonitor

c)

tempMonitor

d)

tempMon