Search Header Logo

Y8 Microbit Python

Authored by Shaun Wilson

Computers

8th Grade

Used 25+ times

Y8 Microbit Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

With microbit Python, what is particular about the T in a while True loop? 

It must be a _ _ _ _ _ _ _

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct code for half a  second delay (0.5) in microbit Python

time.sleep(0.5)

  sleep(500)

.5 sleep

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What character is missing from this first line of microbit Python code?

from microbit import ?

%

()

!

*

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

from microbit import *​

while True:​

    if button_a.is_pressed():​

         display.show(Image.HAPPY)​

    if button_b.is_pressed():​

        display.show(Image.SAD)

Which button needs to be pressed to show a SAD face

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the mathematical operator for less than?

>

+

=

<

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In selection, what three words are used to allow different things to be “chosen”?

while not True

if, elif, else

select from where

a syntax error

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What kind of error will happen if there is a word misspelt, for example image has a lowercase i.

A _ _ _ _ _ _ error

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers