Electronics Worksheet: Input and Output Pins
Remember (Read in, drive out): Inputs: buttons, knobs, sensors. Outputs: LEDs, buzzers, motors, displays. Digital: HIGH (≈ 5 V) or LOW (0 V) only. Analog: any value in a range. Trace the program: only the LED’s own pin matters, and its last command decides ON or OFF.
NameDateTime takenScore ___ / 40
- 1.🔍 Which is the odd one out? (a) a temperature sensor (b) a keypad (c) a turning knob (d) a servo motor
- 2.🔌 Is a speaker an input or an output for a microcontroller? (a) input (b) output
- 3.📶 Digital or analog: a button: pressed or not? (a) analog (b) digital
- 4.Which of these is an input? (a) a sound sensor (b) a buzzer (c) a small display (d) an LED
-
5.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 HIGH
set pin 7 LOW
set pin 7 LOW
set pin 7 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF -
6.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 HIGH
set pin 7 HIGH
set pin 8 LOW
set pin 8 LOW
set pin 8 HIGH
Is the LED ON or OFF at the end? (a) OFF (b) ON -
7.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 HIGH
set pin 7 HIGH
set pin 7 LOW
set pin 8 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 8.True or false: “how bright a room is” is an analog signal. (a) False (b) True
- 9.🔍 Which is the odd one out? (a) a buzzer (b) a water pump (c) an LED (d) a light sensor
- 10.True or false: “the room temperature” is a digital signal. (a) False (b) True
- 11.📶 Digital or analog: a tilt switch: on or off? (a) analog (b) digital
- 12.🔍 Which is the odd one out? (a) a buzzer (b) an LED (c) a keypad (d) a small display
- 13.📶 How many states can a digital pin have? (a) a thousand (b) one (c) ten (d) two
-
14.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 LOW
set pin 7 HIGH
set pin 7 LOW
set pin 7 HIGH
set pin 8 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF -
15.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 7 HIGH
set pin 7 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON -
16.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 8 HIGH
set pin 7 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON -
17.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 8 HIGH
set pin 7 HIGH
Is the LED ON or OFF at the end? (a) ON (b) OFF - 18.True or false: “a button: pressed or not” is an analog signal. (a) True (b) False
- 19.True or false: “a door: open or shut” is an analog signal. (a) False (b) True
- 20.📶 On a 5 V board, a pin set HIGH gives about … (a) 0 V (b) 230 V (c) 50 V (d) 5 V
- 21.🔌 Is a light sensor an input or an output for a microcontroller? (a) output (b) input
- 22.Which of these is an input? (a) a keypad (b) a servo motor (c) an LED (d) a buzzer
-
23.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 8 LOW
set pin 7 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 24.🔍 Which is the odd one out? (a) an LED (b) a push button (c) a motor (d) a small display
- 25.Which of these is an output? (a) a servo motor (b) a temperature sensor (c) a light sensor (d) a motion sensor
-
26.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 LOW
set pin 7 HIGH
set pin 8 HIGH
set pin 7 LOW
Is the LED ON or OFF at the end? (a) ON (b) OFF - 27.True or false: “HIGH or LOW only” is an analog signal. (a) True (b) False
- 28.True or false: “a knob turned part way” is an analog signal. (a) True (b) False
- 29.🔌 Is a keypad an input or an output for a microcontroller? (a) input (b) output
- 30.📶 A pin set LOW gives about … (a) 9 V (b) 0 V (c) 5 V (d) 1.5 V
- 31.Which of these is an input? (a) a temperature sensor (b) a servo motor (c) a speaker (d) a motor
- 32.🔌 Is a buzzer an input or an output for a microcontroller? (a) input (b) output
- 33.📶 A pin that reads a push button is set as … (a) a resistor (b) an output (c) a battery (d) an input
-
34.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 8 HIGH
set pin 7 HIGH
set pin 7 LOW
set pin 7 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON - 35.True or false: “many values in a range” is an analog signal. (a) True (b) False
- 36.Which of these is an input? (a) a speaker (b) a buzzer (c) a water pump (d) a push button
- 37.Which of these is an input? (a) a water pump (b) a motion sensor (c) a small display (d) a speaker
- 38.🔍 Which is the odd one out? (a) a temperature sensor (b) a turning knob (c) a light sensor (d) a water pump
- 39.🔍 Which is the odd one out? (a) a sound sensor (b) an LED (c) a buzzer (d) a small display
- 40.🔌 Is a motor an input or an output for a microcontroller? (a) output (b) input
Answer key
- a servo motor
- output
- digital
- a sound sensor
- OFF
- ON
- OFF
- True
- a light sensor
- False
- digital
- a keypad
- two
- OFF
- OFF
- OFF
- ON
- False
- False
- 5 V
- input
- a keypad
- OFF
- a push button
- a servo motor
- ON
- False
- True
- input
- 0 V
- a temperature sensor
- output
- an input
- ON
- True
- a push button
- a motion sensor
- a water pump
- a sound sensor
- output
Free electronics lessons, practice and worksheets at talentjr.in/electronics-for-kids