Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Arduino Quiz #2: IPO+Simple code

Total questions: 17

Worksheet time: 29mins

Name
Class
Date
1.

Choose the pictures that relate to the concept of hardware:

a)
b)
c)
d)
2.

What are the advantages of using a microcontroller like Arduino?

a)

Strong and permanent solution

b)

Able to sell whatever you build directly to customers

c)

Communicates to other hardware that other controllers cant

d)

Easy to prototype and connect components quickly

3.

What are the pins on the Arduino used for?

a)

Makes the board stable and fast

b)

Connects to the computer

c)

Shows if the board is on or off

d)

Connect to additional hardware

4.

Which picture of the Arduino board shows the pins in the red box:

a)

b)

c)

d)

5.

Fill in the blank: input - (a)   - output

6.

What is syntax?

a)

The computers method of connecting with the microcontroller

b)

Machine code

c)

The rules and specific text we need to type for a specific coding language

d)

The cables used to connect the Arduino to the additional hardware.

7.

Which of these are input devices?

a)
b)

c)

d)

8.

Which of these are output devices?

a)
b)
c)
d)

9.

What is output?

a)

The petrol needed to power an generator

b)

What we can see, hear or feel - the results of a task performed

c)

The rules we set for how we want the code to run

d)

Information used to control the arduino

10.

When we wish to code the Arduino to use the onboard LED we should start with the following code?

a)

pinMode (13, OUTPUT);

b)

pinOUTPUT (13, HIGH)

c)

PinMode ( OUTPUT, HIGH);

d)

pinMode (OUTPUT, DigitalWrite);

11.

Which code runs first as the Arduino powers on?

a)

void setup () {}

b)

void loop () {}

c)

void start () {}

d)

void default () {}

12.

We have an LED connected to pin 7 the Arduino board, which code should I use to switch on the LED?

a)

digitalWrite (7, ON);

b)

digitalWrite (BUILTIN_LED, HIGH);

c)

digitalWrite (13, ON);

d)

digitalWrite (7, HIGH);

13.

The following code code is used to make the on board LED flash every 1 second, fill in the missing code:

void loop () {

digitalWrite (13, HIGH);

_ _ _ _ _ _ _ _ _ _

digitalWrite (13, LOW);

_ _ _ _ _ _ _ _ _ _

(a)  

14.

What does the function void loop () do?

a)

It is where we store coding comments

b)

It is a looped function that runs continuously -unless broken.

c)

It is where we store code to run the program at the start

d)

Use to turn on LEDs

15.

What do we call this?

(a)  

16.

What do we use a breadboard for?

a)

Create final electrical circuits you can sell.

b)

Make a sandwich

c)

Preventing electrical short circuits

d)

Connecting components to the Arduino quickly

17.

What kind of jump cables are these?

a)

Male to Femail

b)

Female to Female

c)

Male to Male

d)

Male to Female