Syntax
what does it do
Are you smarter than a CSP student
Did you pay attention?
Names
100

When using a variable, how do we ensure our game repeats as new

"variable"=0

100

show_string("mom")

It displays mom on the screen

100

What language did we program in

Python

100

Where do we plug in our "black wire" with one large end and one large end (when connecting microbits)

Plug the small end of the USB cable (the USB-C) into the micro:bit board.

Plug the large end (standard USB) into your computer’s USB port.

100

What is the name of the block that runs only once at the very beginning of a Micro:bit program?

on start

200

What is a colon used for

Ending of if,while,for and functions

200

def on_gesture_shake():

pass

input.on_gesture(Gesture.SHAKE, on_gesture_shake)

What you insert in the place of pass will display when you shake the microbit

200

Coding is Used in Our Everyday Lives in...

Video games, apps, websites

200

What is the username you sign in with for this class

dvc.local\c4k

200

What is an actuator?

The mechanism by which a control system acts upon an environment and a device that moves when supplied with energy

300

  Why does this not work:

  if roll == 1

There is no colon ":"

300

basic.show_icon(IconNames.HEART)

Shows a heart symbol

300

What are the ways you can save your code mentioned in class

Download the code or take a picture of it

300

What is the website we use in this class

300

What is the name of the block used to run code over and over again forever?

forever

400

on_start:

    show_icon("heart")

The function is written incorrectly.

 correct syntax if in Python "def on_start():" 

400

How do you create variables?

global "variable name"

400
How many LEDS does the microbit have

25 total. 5x5 screen.

400

What kind of loop is:

"repeat 4 times

do..."

an limited loop

400

What’s the name of the sensor inside the Micro:bit that can tell if the device is shaking or tilting?

Accelerometer

500

Why does this not work

hand = randit(1,6)

it is randint not randit

500

 hand = randint(1, 3)

pick randomly from 1-3

500

What is the distance between the sensor and the object?

one-half the distance traveled by the sound wave

500

What is your teachers name

Esha

500
What is a robot?

A robot is a machine that follows code and can sense or react to the world around it