wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

On Board a Microcontroller

Total questions: 32

Worksheet time: 26mins

Name
Class
Date
1.

The goals of the 'On Board a Microcontroller' activity are:

a)

To learn how to program a microcontroller

b)

To understand the hardware components of a microcontroller

c)

To develop skills in integrating sensors with microcontrollers

d)

All of the above

2.

Which materials are needed for the 'On Board a Microcontroller' activity?

a)

Resistors, capacitors, and a microcontroller

b)

Only a microcontroller

c)

Resistors and capacitors only

3.

Which of the following is a goal of the 'On Board a Microcontroller' activity?

a)

Identify patterns in an algorithm

b)

Learn about history

c)

Study human anatomy

d)

Explore world geography

4.

What is the micro:bit?

4 lines
5.

Which of the following is an input option on the micro:bit?

a)

LED Matrix

b)

Temperature Sensor

c)

USB Connector

d)

Bluetooth

6.

The micro:bit has _______ programmable buttons.

a)

The micro:bit has 2 programmable buttons.

b)

The micro:bit has 3 programmable buttons.

c)

The micro:bit has 4 programmable buttons.

d)

The micro:bit has 5 programmable buttons.

7.

What sensors are included in the micro:bit for motion detection?

4 lines
8.

The MakeCode Editor is used for:

a)

Creating video games

b)

Programming microcontrollers

c)

Editing photos

d)

Designing websites

9.

Which type of programming language is based on graphics or visuals?

a)

Text-based programming language

b)

Block-based programming language

c)

Command-line programming language

d)

None of the above

10.

True or False: Block-based programming requires understanding detailed syntax and commands.

a)

True

b)

False

11.

What is pair programming and how is it used in the industry?

a)

Pair programming is a collaborative programming technique where two developers work together at one workstation, commonly used to improve code quality and team collaboration.

b)

Pair programming is a solo programming technique where a developer works alone to improve focus and productivity.

c)

Pair programming is a method of programming where multiple teams work on the same project independently.

d)

Pair programming is a technique used to automate code generation without human intervention.

12.

You can create executable code using the MakeCode editor by:

a)

Writing code in the editor and clicking 'Download'.

b)

Using the 'Run' button to execute directly.

c)

Saving the file as a .exe.

d)

Compiling the code manually.

13.

As shown in Figure 4, update the file name from Untitled to ees_323_01_Show2Icons_Name. What does 'Name' represent in this file naming convention?

a)

The version number

b)

The author's name

c)

The date of creation

d)

The project name

14.

Fill in the blank: The MakeCode editor includes an emulator on the left of the window, as shown in Figure 5. The emulator shows a simulation of executing the code in the programming area as it will appear on the physical micro:bit when you send it to the micro:bit later in the activity. The simulation runs continuously but can be controlled using the _______.

a)

control buttons

b)

keyboard

c)

mouse

d)

touchscreen

15.

Refer to Figure 7. What is the first step in the flowchart algorithm?

a)

A) Show a sad face

b)

B) Clear the screen

c)

C) Show a happy face

d)

D) Go back to step 1.

16.

How would you use MakeCode Editor to make a basic block code program yourself?

a)

Use the MakeCode Editor to drag and drop blocks to create the program.

b)

Write the program code manually in a text editor.

c)

Use a pre-built template to start the program.

d)

Import a program from an external source.

17.

Explain the process to create a copy of a code block in MakeCode.

a)

Select the code block, right-click and choose 'Duplicate'.

b)

Drag the code block to the desired location.

c)

Select the code block, right-click and choose 'Clone'.

18.

In the flowchart, what is shown after 'Show a happy face'?

4 lines
19.

The Forever control block causes the code inside the control block to repeat forever. Predict what will happen if the Forever Control block is replaced with the On Start control block.

a)

The code will run once and stop.

b)

The code will run forever.

c)

The code will not run at all.

d)

The code will run twice and stop.

20.

Verify that your emulator simulates the program, as shown in the On Start control block simulation. If the simulation differs from what you expect, then you will need to troubleshoot your program to identify, then repair the problem.

a)

True

b)

False

21.

Reflection Question: How can the Forever and On Start conditional blocks be used to create executable code from your natural language and flowchart algorithms?

a)

By translating natural language into code using these blocks.

b)

By ignoring these blocks in the algorithm.

c)

By using only the Forever block for all tasks.

d)

By using only the On Start block for all tasks.

22.

To connect a micro:bit to a computer, you need to:

a)

Use a USB cable

b)

Use a Bluetooth connection

c)

Use an HDMI cable

d)

Use a Wi-Fi connection

23.

When manually saving the .hex file to a micro:bit, what should you do after selecting 'Download' in MakeCode?

a)

Disconnect the micro:bit

b)

Select an easy-to-find folder

c)

Turn off the computer

d)

Delete the file

24.

Explain the steps to send a .hex file to the micro:bit as shown in the image.

a)

Connect the micro:bit to the computer, drag and drop the .hex file onto the micro:bit drive.

b)

Open the micro:bit app and upload the .hex file directly.

c)

Email the .hex file to the micro:bit.

d)

Use a special cable to transfer the .hex file.

25.

What control block repeats a program?

a)

Loop block

b)

If block

c)

Wait block

d)

Variable block

26.

What are conditional statements in programming?

4 lines
27.

The purpose of an if-then conditional statement is to:

a)

execute a block of code if a specified condition is true.

b)

repeat a block of code a certain number of times.

c)

define a function or method.

d)

store data in a variable.

28.

What is the first step (once you are at makecode.microbit.org) to start a new project in MakeCode according to the instructions?

a)

Open the MakeCode editor

b)

Select a project template

c)

Click on 'New Project'

d)

Sign in to your account

29.

What are the steps involved in creating code with your programming partner using Pair Programming?

a)

Identify the problem, Plan the solution, Write the code, Test the program, Debug if necessary

b)

Write the code, Test the program, Identify the problem, Plan the solution, Debug if necessary

c)

Plan the solution, Identify the problem, Write the code, Debug if necessary, Test the program

d)

Test the program, Write the code, Plan the solution, Identify the problem, Debug if necessary

30.

It is important to save each new section of code as a new version during the development process because:

a)

it helps in tracking changes and reverting to previous versions if needed.

b)

it increases the file size unnecessarily.

c)

it makes the code run faster.

d)

it complicates the development process.

31.

When you send the .hex file to the micro:bit, how do you know that the code is working?

a)

The micro:bit LED matrix displays the same result as the emulator.

b)

The micro:bit LED matrix displays a different result than the emulator.

c)

The micro:bit does not display any result.

d)

The micro:bit LED matrix displays a random pattern.

32.

What will the emulator display if button A is pressed?

a)

Displays the letter Y

b)

Displays nothing on the screen

c)

Displays the letter N