wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Arduino - Exercise 1 Blink

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is this?

a)

A transistor

b)

An Arduino micro-controller

c)

The Millenium Falcon

d)

A resistor

2.

How do we know what the cathode (negative leg) is of an LED? Tick correct ones

a)

Flat edge of LED bulb

b)

Long leg

c)

Short leg

d)

It says on it.

3.

What does digital output mean? Tick all correct answers

a)

It can have one of two values

b)

It can have a voltage of either 0v or 5v

c)

It can be more than 2 different values or states.

d)

It can be HIGH or LOW

4.

What would this command do?


pinMode (13, OUTPUT);

a)

Initialise digital pin 13 as an Input

b)

Nothing, it is spelled incorrectly

c)

Initialise digital pin 13 as an Output

d)

Turn on output 13

5.

What would this command do?


pinMode (5, Output)

a)

Initialise digital pin 5 as an Input

b)

Nothing, it is written incorrectly.

c)

Initialise digital pin 5 as an Output

d)

Turn on output 5

6.

void loop is the section of an Arduino sketch that is only run once.

a)

True

b)

False

7.

if you want to stop an Arduino sketch for 1 second the command would be ---

a)

delay (1);

b)

delay (1000)

c)

delay (1000);

d)

stop for 1 second

8.

What would the following command do?


digitalWrite (13, LOW);

a)

Nothing, it is written incorrectly

b)

Turn on digital pin 13

c)

Turn off digital pin 13

d)

Order a pizza.

9.

Type in the correct command to turn on digital output 13. Do not use spaces and include all correct capitals and semi colons (syntax)

(a)  

10.

Tick all of the errors in the following code.


Void setup ()

{

Pinmode (13, OUTPUT)

{

a)

Void is not written correctly

b)

Pinmode is incorrectly written

c)

There is a semi-colon missing

d)

The curly brackets are incorrect.