wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Arduino Basics: Inputs and Outputs Quiz

Total questions: 11

Worksheet time: 21mins

Name
Class
Date
1.

What is an Arduino?

a)

A type of motor

b)

A microcontroller development board

c)

A type of sensor

d)

A computer software

2.

Which of the following is an example of a digital input device?

a)

LED

b)

Push button

c)

Potentiometer

d)

Buzzer

3.

What function is used to set up a pin as an input or output in Arduino code?

a)

pinSetup()

b)

setupPin()

c)

pinMode()

d)

setPin()

4.

Which command is used to send a HIGH or LOW signal to a digital output pin?

a)

digitalWrite()

b)

analogWrite()

c)

setPin()

d)

pinSignal()

5.

What is the voltage range for digital signals on most Arduino boards?

a)

0V to 12V

b)

1V to 10V

c)

0V to 5V

d)

0V to 3.3V

6.

An LED connected to an Arduino pin is an example of a digital output.

4 lines
7.

Analog pins on the Arduino are used only for output.

4 lines
8.

The function delay() pauses the program for a specified time in seconds.

4 lines
9.

What is the purpose of the setup() function in an Arduino sketch?

4 lines
10.

Name two examples of sensors that can be used as inputs in an Arduino project.

4 lines
11.

Write a simple Arduino code that turns an LED on when a button is pressed and off when it is released.

4 lines