Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Basic Arduino Programming

Total questions: 20

Worksheet time: 13mins

Name
Class
Date
1.

What is a variable?

a)

A type of storage for us to store information we use in a code

b)

Allows us to run the code many times

c)

The type of information we store in a code

2.

What is a loop?

a)

A type of storage for us to store information we use in a code

b)

Allows us to run the code many times

c)

The type of information we store in a code

3.

What is the variable of the following statement:

int count = 3;

a)

int

b)

count

c)

3

d)

;

4.

What does this function does?

digitalWrite ()

a)

writes output value to either HIGH or LOW

b)

writes output value using PWM sequence

c)

sets a pin to either INPUT or OUTPUT

d)

pauses the program

5.

What does this function does?

pinMode ()

a)

writes output value to either HIGH or LOW

b)

writes output value using PWM sequence

c)

sets a pin to either INPUT or OUTPUT

d)

pauses the program

6.

What does this function does?

delay ()

a)

writes output value to either HIGH or LOW

b)

writes output value using PWM sequence

c)

sets a pin to either INPUT or OUTPUT

d)

pauses the program

7.

What happens when you run this code:

digitalWrite (red, HIGH);

delay (5000);

a)

The red LED lights up for 5000 seconds

b)

The red LED turns off for 5000 seconds

c)

The red LED turns on for 5 seconds

8.

digitalWrite (LED1,HIGH);

What does it means by HIGH?

a)

Blinking

b)

Switch OFF

c)

Switch ON

d)

Sequence

9.

digitalWrite (LED1, HIGH);

delay(1000);

digitalWrite (LED1, LOW);

What does the program do?

a)

LED Switch Off at the beginning, wait for 60s and then switch ON.

b)

LED Switch ON at the beginning, wait for 10s and then Switch OFF.

c)

LED Switch ON at the beginning, wait for 1s and then switch ON.

d)

LED Switch ON at the beginning, wait for 1s and then switch OFF.

10.

Identify this component

a)

Uno Cards

b)

Raspberry Pi

c)

Arduino Duo board

d)

Arduino Uno board

11.

Identify this component

a)

Arduino Uno board

b)

Raspberry Pi

c)

Breadboard / Protoboard

d)

White Plastic Board

12.

Which command is called repetitively over and over again as long as the Arduino has power.

a)

loop ( )

b)

(output)

c)

setup ( )

d)

(input)

13.

This part is called a

a)

Piezo buzzer

b)

Push button

c)

Potentiometer

d)

None of the Above

14.

" if (digitalRead(3)==HIGH) " what is "==" stand for ?

a)

equal

b)

and

c)

or

d)

not

15.

Long end of an LED

a)

+ (Anode)

b)

- (Cathode)

16.

If coded correctly, would the following circuit function?

a)

Yes

b)

No

17.

What is the correct pinMode setup code for this circuit?

a)

pinMode(12, OUTPUT);

b)

pinMode(8, INPUT);

c)

pinMode(8, OUTPUT);

d)

pinMode(7, INPUT);

18.

What component is NOT being using in the circuit?

a)

Light Dependent Resistor

b)

Light Emitting Diode

c)

Resistor

d)

Jumper Leads

19.

Complete circuit with lit light source.

a)
b)
c)
d)
e)
20.

delay(5000); stands for :

a)

Wait 50 seconds

b)

Wait 5 seconds

c)

Wait 5 minutes

d)

No one