

Y9: Microbit Array
Presentation
•
Computers
•
10th Grade
•
Practice Problem
•
Easy
David Kang
Used 2+ times
FREE Resource
18 Slides • 23 Questions
1
Arrays and Microbits
2
Open Ended
Could you try to write as many colours you know.
3
Either you can recalled more than 3 or 5 colours.
These are grouped as colours or list of colours.
4
Open Ended
List out all types of transportations you've used or now.
5
Multiple Choice
What type of list can you make from this?
Colours
Sizes
Length
Numbers
6
Multiple Choice
What type of list can you make from this?
Colour
Size
Length
Number
7
Multiple Choice
What type of list can you make from this?
flavour
Size
Length
Number
8
Multiple Choice
What type of list can you make from this?
flavour
Size
pattern
Number
9
Multiple Choice
What type of list can you make from this?
flavour
Size
pattern
Number
10
List
a number of connected items or names written or printed consecutively, typically one below the other.
11
List
A "list" is like a line-up of words or things. Imagine you are playing with your toys and you line them up one by one. This is a list, but instead of toys, you write words down.
For example, you want to remember what to pack in your school bag. You might write:
Books
Pencil case
Lunchbox
Water bottle
12
List = Array
13
List = Array
an impressive display or range of a particular type of thing.
14
Array
In computer science, an "array" is a way of storing many pieces of information (like numbers or words) in a single box. You can imagine it like a long train, where each car of the train can hold one piece of information.
If you have a train with 10 cars, you can store 10 pieces of information in it. This is an "array" in programming
15
Array
In computer science, an "array" is a way of storing many pieces of information (like numbers or words) in a single box. You can imagine it like a long train, where each car of the train can hold one piece of information.
If you have a train with 10 cars, you can store 10 pieces of information in it. This is an "array" in programming
16
Multiple Choice
What is an array in computer science?
A type of computer hardware
A way of storing many pieces of information in one place
A program used for creating digital art
A single piece of data
17
Multiple Choice
How does an array in computer science work?
It makes the computer run faster
It holds only one piece of information at a time
It stores different pieces of information in separate slots, like a list
It is used to turn the computer on and off
18
Multiple Choice
In programming, if we want to store 5 different numbers and retrieve them easily, what should we use?
A loop
A function
A bug
An array
19
20
Multiple Choice
Which of the following best describes an 'integer' in computer science?
A type of computer software
A decimal number like 2.5 or 3.14
A whole number that can be positive, negative, or zero, but without any decimal points
A special command that tells the computer to start a program
21
Multiple Choice
In computer science, what does the term 'string' refer to?
A sequence of characters, like a word or a sentence
A type of data that only contains numbers
A cord used to connect different computer parts
A process to shut down the computer
22
Remember that numbers can be both integer or just string text.
23
In computer programme, the first item starts with " 0 "
24
A
B
25
Labelling
These are same instructions but difference in terms of computer language. Could you label the correct language?
26
Pseudocode
Microbit Python
27
Multiple Choice
What is pseudocode in computer science?
A type of harmful computer virus
A simple way of writing out code that humans can understand, used for planning a program
A software used to design computer games
The language that computers use to talk to each other
28
Multiple Choice
What does the given pseudocode do when the micro:bit is shaken?
It shows a random picture on the screen.
It clears the screen and does nothing else.
It outputs a random number from 1 to 6, waits for half a second, and then clears the screen.
It stops the program immediately.
29
Open Ended
Explain in your own words, what is the outcome of this pseudocode instruction?
30
The pseudocode you saw just now can be rewritten in Microbit in this way.
31
But first let's dissect the code..
32
Multiple Choice
What is the function of the following lines in the given Python code?
They tell the computer to create random numbers.
They tell the computer to import everything from the 'microbit' library and the 'random' library for use in the program.
They display a random number on the screen.
They put the microbit to sleep for a random amount of time.
33
Multiple Choice
What does the following line of code do in Python?
It creates a random number between 1 and 6.
It creates an array (list in Python) named 'numbers', which holds the values 1, 2, 3, 4, 5, and 6.
It shows the numbers 1 to 6 on the screen.
It multiplies the numbers 1 to 6.
34
Multiple Choice
What does the following line of code do in Python?
It runs the following block of code just once.
It runs the following block of code only if a condition is met.
It creates an infinite loop, running the following block of code forever (or until the program is stopped).
It stops the program from running.
35
Multiple Choice
What does the following line of code do in Python?
It makes the micro:bit shake.
It checks if the 'shake' gesture was detected on the micro:bit.
It generates a random number.
It shows a message on the micro:bit screen.
36
Multiple Choice
What does the following line of code do in Python?
It randomly rearranges the numbers in the array.
It adds a random number between 0 and 5 to the 'numbers' array.
It displays a random number between 0 and 5 on the micro:bit screen.
It selects a random number from the 'numbers' array and displays it on the micro:bit screen.
37
Multiple Choice
What does the following line of code do in Python?
It causes the program to stop running for 2000 seconds.
It makes the micro:bit display the number 2000.
It causes the program to pause for 2000 milliseconds (or 2 seconds) before continuing.
It increases the speed of the program for 2000 seconds.
38
Multiple Choice
What does the following line of code do in Python?
It turns off the micro:bit.
It erases all the code in the program.
It clears the micro:bit's display, turning off all the LEDs.
It creates a new display for the micro:bit.
39
You watch the video to see how I did it.
Type this code in:
https://python.microbit.org/v/3
If you test the shake simulator, you can see random numbers will appear.
40
Based on this Pseudocode, could you try to modify your code so that it show different groups in the microbit when shaken?
Make sure to submit your work as screenshot and upload in Google Classroom.
41
Once you've completed, you may use the extra time to work on your Python Project on your text-based RPG Game
Arrays and Microbits
Show answer
Auto Play
Slide 1 / 41
SLIDE
Similar Resources on Wayground
37 questions
Types of Plate Boundaries
Presentation
•
10th Grade
32 questions
Materi AI edit -suardi
Presentation
•
10th Grade
38 questions
French Subject Pronouns
Presentation
•
9th - 10th Grade
36 questions
Compression
Presentation
•
10th - 11th Grade
35 questions
Similar Triangles
Presentation
•
10th Grade
37 questions
Ecology terms part 4
Presentation
•
9th - 10th Grade
35 questions
Avancemos 1 Unidad 2 leccion 2
Presentation
•
9th Grade
36 questions
The Brain
Presentation
•
10th Grade
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
10 questions
Video Games
Quiz
•
6th - 12th Grade
10 questions
Test Your Knowledge with 15 Fun Trivia Questions
Interactive video
•
6th - 10th Grade
15 questions
Memorial Day Trivia
Quiz
•
KG - 12th Grade
12 questions
Name that Candy
Quiz
•
KG - 12th Grade
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
30 questions
K/H Final Review Part 1
Quiz
•
9th - 12th Grade
40 questions
NCFE Earth and Environmental Science Released Test
Quiz
•
9th - 12th Grade