Font size
WorksheetsArduino Basics: Inputs and Outputs Quiz
Total questions: 11
Worksheet time: 21mins
What is an Arduino?
A type of motor
A microcontroller development board
A type of sensor
A computer software
Which of the following is an example of a digital input device?
LED
Push button
Potentiometer
Buzzer
What function is used to set up a pin as an input or output in Arduino code?
pinSetup()
setupPin()
pinMode()
setPin()
Which command is used to send a HIGH or LOW signal to a digital output pin?
digitalWrite()
analogWrite()
setPin()
pinSignal()
What is the voltage range for digital signals on most Arduino boards?
0V to 12V
1V to 10V
0V to 5V
0V to 3.3V
An LED connected to an Arduino pin is an example of a digital output.
Analog pins on the Arduino are used only for output.
The function delay() pauses the program for a specified time in seconds.
What is the purpose of the setup() function in an Arduino sketch?
Name two examples of sensors that can be used as inputs in an Arduino project.
Write a simple Arduino code that turns an LED on when a button is pressed and off when it is released.
