Search Header Logo
Y6 Microbit: Part 1

Y6 Microbit: Part 1

Assessment

Presentation

Computers

10th Grade

Practice Problem

Medium

Created by

David Kang

Used 3+ times

FREE Resource

10 Slides • 6 Questions

1

Be an Innovator

2

Programming Constructs

  1. Sequence

  2. Selection

  3. 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

Question image

Which sequence of code should work correctly>

1

A

2

B

5

media
media

The "+" is arranged incorrectly.

Numbers should be given first then it only can be added.

6

Multiple Choice

What is a sequence in programming?

1

Repeating a section of code a certain number of times

2

Making a decision in the code

3

The order in which instructions are executed

4

Skipping over a section of the code

7

media

​Try this code in this website:

https://makecode.microbit.org/#editor

You can watch this video to see how I do it.

media

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

Question image

What do you think this code does?

1

A) A random number between 1 and 10

2

B) A number equal to Num1 divided by Num2 if Num1 and Num2 are the same

3

C) A number equal to Num1 multiplied by Num2 if Num1 and Num2 are different

4

D) B and C are both correct

10

Multiple Choice

What is a selection in programming?

1

Choosing a specific section of code to repeat

2

Making a decision in the code based on a condition

3

Executing instructions in a certain order

4

Running a code in a continuous loop

11

media

​Try this code in this website:

https://makecode.microbit.org/#editor

You can watch this video to see how I do it.

media

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

Question image

What will the variable Result be after pressing button A and running the code?

1

3

2

6

3

10

4

4

14

Multiple Choice

What is 'iteration' in programming?

1

The process of executing instructions in a certain order

2

The act of making a decision in the code

3

The practice of repeating a section of code a defined number of times or until a condition is met

4
  • The step of choosing a specific section of code to execute

15

media

​Try this code in this website:

https://makecode.microbit.org/#editor

You can watch this video to see how I do it.

media

16

Go to Google Classroom and open the given Google Docs

"Term 2 Week 05" 

media

Be an Innovator

Show answer

Auto Play

Slide 1 / 16

SLIDE