

Y6 Microbit: Part 1
Presentation
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
David Kang
Used 3+ times
FREE Resource
10 Slides • 6 Questions
1
Be an Innovator
2
Programming Constructs
Sequence
Selection
Iteration
3
Sequence
It is the order in which instructions are executed in a program. The order is very important. If the instructions are in the wrong order, the program may give an error or a wrong result.
4
Multiple Choice
Which sequence of code should work correctly>
A
B
5
The "+" is arranged incorrectly.
Numbers should be given first then it only can be added.
6
Multiple Choice
What is a sequence in programming?
Repeating a section of code a certain number of times
Making a decision in the code
The order in which instructions are executed
Skipping over a section of the code
7
Try this code in this website:
You can watch this video to see how I do it.
8
Selection
This is the process of making a decision. It allows us to ask a question to determine which path to take. It uses the If ... Then or If ... Then ... Else statements.
9
Multiple Choice
What do you think this code does?
A) A random number between 1 and 10
B) A number equal to Num1 divided by Num2 if Num1 and Num2 are the same
C) A number equal to Num1 multiplied by Num2 if Num1 and Num2 are different
D) B and C are both correct
10
Multiple Choice
What is a selection in programming?
Choosing a specific section of code to repeat
Making a decision in the code based on a condition
Executing instructions in a certain order
Running a code in a continuous loop
11
Try this code in this website:
You can watch this video to see how I do it.
12
Iteration
It executes a section of code repeatedly when the program runs. There are two types of iteration: count controlled loop and condition controlled loop.
Count controlled loop: Repeats a section of code a defined number of times.
Condition controlled loop: Repeats a section of code until a condition has been met.
13
Multiple Choice
What will the variable Result be after pressing button A and running the code?
3
6
10
4
14
Multiple Choice
What is 'iteration' in programming?
The process of executing instructions in a certain order
The act of making a decision in the code
The practice of repeating a section of code a defined number of times or until a condition is met
The step of choosing a specific section of code to execute
15
Try this code in this website:
You can watch this video to see how I do it.
16
Go to Google Classroom and open the given Google Docs
"Term 2 Week 05"
Be an Innovator
Show answer
Auto Play
Slide 1 / 16
SLIDE
Similar Resources on Wayground
12 questions
Complex Numbers
Presentation
•
10th Grade
12 questions
Lesson 4: Relations and Functions
Presentation
•
10th Grade
16 questions
Algoritma dan pemrograman
Presentation
•
10th Grade
12 questions
K.1 Media Balance is Important
Presentation
•
KG
13 questions
Circumference and Area of Circles (Review)
Presentation
•
10th Grade
13 questions
Adjective and Adverb Phrases Review
Presentation
•
10th Grade
12 questions
Descriptive Text
Presentation
•
10th Grade
12 questions
Points, Lines, and Planes
Presentation
•
10th Grade
Popular Resources on Wayground
15 questions
Grade 3 Simulation Assessment 1
Quiz
•
3rd Grade
22 questions
HCS Grade 4 Simulation Assessment_1 2526sy
Quiz
•
4th Grade
16 questions
Grade 3 Simulation Assessment 2
Quiz
•
3rd Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2526sy
Quiz
•
5th Grade
17 questions
HCS Grade 4 Simulation Assessment_2 2526sy
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
24 questions
HCS Grade 5 Simulation Assessment_2 2526sy
Quiz
•
5th Grade
20 questions
Math Review
Quiz
•
3rd Grade