Python knowledge
Python coding
Microbits
Coding Microbits
Tech Trivia
100

What is a "comment" in Python

A line to explain the code that does not affect the running of the code

100

How long does a code run for in a while True loop?

Forever

100

Who owns the company Microbits

BBC

100

Name one way to power a Microbit

Battery pack or USB cable connected to laptop

100

What does the term "AI" stand for in the context of technology?

Artificial Intelligence

200

What is the difference between = and == in Python?

= assigns a value
== checks for the equivalent

200

What does it mean to 'indent'?

The use of space/ tab to organise code

200

How many buttons are there on the front face of the Microbit?

Two - buttons A and B

200

What should the first line of code be when coding Microbits?

from microbit import *

200

What does the term "debugging" mean in programming?

Identifying and fixing a problem in the code

300

What type of error occurs when a required colon is missing at the end of an if statement?

Syntax

300

What are the three conditionals?

if, elif, else

300

Name one thing that the LED matrix can do on a Microbit

Show text, scroll text, show images

300

What is the purpose of sleep(1000) in a Microbit program?

Pauses the code for 1 second

300

What does "WWW" stand for in relation to the internet?

World Wide Web

400

What keyword is used to define a function in Python?

def

400

What should be at the end of each if statement?

A colon :

400

What batteries do the Microbits use

Triple A (AAA)

400

What is the difference between display.show and display.scroll?

display.show is a static showing of something. display.scroll scrolls the image or text from right to left

400

What does Ctrl + A do on your keyboard

Selects all

500

What are variables?

A storage location that a computer uses to store values

500

CODE: How do you show the words 'Hello world' on your screen

print("Hello world")

500

What feature allows the Microbit to sense tilt?

Accelerometer

500

Correct this code:
display.show(Image.duck)

display.show(Image.DUCK)

500

Which company is known for its gaming console called PlayStation?

Sony