stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Micropython for beginners Flashcards | StudBud
Explore
/
Micropython for beginners
Micropython for beginners
11 terms
·
StudBud Administration
·
4 plays
This quiz help learners to master the basic concepts and syntax in micropython programming language.
Flashcards
11 cards
F
Practice quiz
P
Host live
L
Questions
11
Answers
1
What does this code do?
Displays a happy face
Starts the program
Opens a file called import in the microbit
Imports all files from a library called microbit
2
What is an event handler in micro-python?
A memory location used to store values for a program
A series of steps and instructions
When you press Button A
A code that is associated with a particular event
3
What will happen if no button is pressed?
Show HAPPY face
Show nothing
Show SAD face
The program will end
4
Which of the following lines of code are functions?
display.clear()
button_b.is_pressed()
button_a.is_pressed()
display.show(Image.SAD)
5
This code can be inserted at the end of a program
True
False
6
What does 0, 5 and 9 represent in the program below?
Rows and columns of the LEDs
Image of a boat
Brightness level of the LEDs
Values of the program
7
What will happen when button B is pressed
Show SAD face
No display, program will end.
Show HAPPY face
Program will start again
8
Select a function you can identify in the program
display.show(boat)
boat = Image()
boat
from microbit import *
9
Which statement below has been used for iteration?
while
if
elif
else
10
Name a variable you can identify in the program
display.show(boat)
boat
Boat
boat = Image()
11
The code below will scroll the words "Hello world" on the microbit screen
True
False