wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Micro:bit Python #1

Total questions: 17

Worksheet time: 10mins

Name
Class
Date
1.

How many pixels are there on the micro:bit LED array?

a)

20

b)

25

c)

0 - 4

d)

There are no pixels, only bits

2.
Which syntax would you use to display scrolling text that said "I love school"
a)
display.show("I love school")
b)
display.scroll(I love school)
c)
display.show(I love school)
d)
display.scroll("I love school")
3.
Define what is meant by a variable
a)

A "chunk" of code that is indented

b)

A sequence of instructions

c)

A memory location which stores a value

d)

Repetition of code a certain number of times

4.

Which device on the micro:bit lets you detect movement?

a)
compass
b)
LEDs
c)
accelerometer
d)
the buttons
5.

What term is used to refer to transferring code from the editor to the microbit?

a)

Encrypting

b)

Downloading

c)

Flashing

d)

Shocking

6.

The symbol that assigns ("gives") a variable a value

a)
=
b)

== 

c)

:

d)

#

7.

What piece of code must be used at the beginning of every micro:bit Python program?

a)

from microbit import *

b)

while True

c)

Import Microbit

d)

From Microbit Import

8.

Python is different from many programming languages because it uses this as part of the language's syntax

a)

symbols

b)

keywords

c)

punctuation

d)

indentation

9.

Simple small computers like the micro:bit that can only run one program at a time are called

a)

microcontrollers

b)

microcomputers

c)

bitcontrollers

d)

embedded system

10.

When a small, simple computer like the micro:bit is placed in an ordinary household device, it creates a "smart" device which is also called a(n)

a)

microcontroller

b)

microcomputer

c)

bitcontroller

d)

embedded system

11.

Which symbol creates a comment in Python

a)

:

b)

//

c)

#

d)

*

12.

Which symbol ends every if statement and while loop in Python

a)

:

b)

//

c)

#

d)

*

13.

Which of the following is best used to distinguish ethical hacking from non-ethical hacking?

a)

Disruption

b)

Exchange of money

c)

Destruction of data

d)

Permission

14.

Many colleges offer Computer Science classes on hacking

a)

True

b)

False

15.

Which of the following is a security concern of IoT (Internet of Things) devices?

a)

Collection of personal data

b)

Unauthorized network access

c)

Difficulty updating operating systems

d)

All of these

16.

Which of the following areas of computer science would require the study and practice of ethical hacking?

a)

Computer Security

b)

Computer Programming

c)

Computer Hardware

d)

Artificial Intelligence

17.

In computer programming, this word means the rules that control the placement of the symbols, punctuation, and keywords for that programming language

a)

indentation

b)

block

c)

syntax

d)

module