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.True or false: “a button: pressed or not” is an analog signal. (a) True (b) False
- 2.📶 Digital or analog: a door: open or shut? (a) digital (b) analog
- 3.📶 On a 5 V board, a pin set HIGH gives about … (a) 50 V (b) 230 V (c) 0 V (d) 5 V
- 4.Which of these is an output? (a) a temperature sensor (b) a motion sensor (c) a keypad (d) an LED
- 5.📶 Digital or analog: how loud a sound is? (a) analog (b) digital
-
6.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 7 HIGH
set pin 7 HIGH
Is the LED ON or OFF at the end? (a) ON (b) OFF - 7.🔍 Which is the odd one out? (a) a buzzer (b) an LED (c) a speaker (d) a push button
-
8.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 7 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON - 9.Which of these is an input? (a) a small display (b) a sound sensor (c) a water pump (d) an LED
- 10.🔌 Is a push button an input or an output for a microcontroller? (a) output (b) input
- 11.True or false: “the room temperature” is an analog signal. (a) True (b) False
-
12.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 8 HIGH
set pin 7 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON - 13.🔍 Which is the odd one out? (a) a sound sensor (b) a buzzer (c) a turning knob (d) a push button
- 14.Which of these is an output? (a) a sound sensor (b) a light sensor (c) a turning knob (d) a speaker
- 15.📶 A pin that reads a push button is set as … (a) an input (b) a battery (c) a resistor (d) an output
- 16.🔍 Which is the odd one out? (a) a temperature sensor (b) a light sensor (c) a servo motor (d) a turning knob
- 17.📶 How many states can a digital pin have? (a) ten (b) one (c) a thousand (d) two
- 18.🔌 Is a turning knob an input or an output for a microcontroller? (a) output (b) input
- 19.🔌 Is a buzzer an input or an output for a microcontroller? (a) output (b) input
- 20.🔌 Is a motor an input or an output for a microcontroller? (a) output (b) input
-
21.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 8 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON - 22.Which of these is an input? (a) a water pump (b) an LED (c) a small display (d) a push button
- 23.📶 Digital or analog: a tilt switch: on or off? (a) analog (b) digital
- 24.📶 Digital or analog: a button: pressed or not? (a) analog (b) digital
- 25.🔌 Is a servo motor an input or an output for a microcontroller? (a) input (b) output
-
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
Is the LED ON or OFF at the end? (a) ON (b) OFF - 27.🔌 Is a water pump an input or an output for a microcontroller? (a) output (b) input
-
28.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 8 HIGH
set pin 8 LOW
set pin 8 HIGH
set pin 8 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON -
29.💡 An LED (with its resistor) is on pin 7. All pins start LOW. The program runs once:
set pin 7 LOW
set pin 7 LOW
set pin 8 HIGH
set pin 7 HIGH
set pin 8 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON - 30.Which of these is an input? (a) a motion sensor (b) a small display (c) a buzzer (d) a servo motor
- 31.🔍 Which is the odd one out? (a) a water pump (b) a turning knob (c) a push button (d) a sound sensor
- 32.True or false: “HIGH or LOW only” is a digital signal. (a) False (b) True
- 33.🔍 Which is the odd one out? (a) a light sensor (b) a push button (c) a temperature sensor (d) an LED
- 34.Which of these is an input? (a) a buzzer (b) a servo motor (c) a small display (d) a light sensor
- 35.🔍 Which is the odd one out? (a) a small display (b) a buzzer (c) a servo motor (d) a motion sensor
- 36.🔍 Which is the odd one out? (a) a motor (b) a sound sensor (c) a water pump (d) an LED
- 37.🔌 Is a motion sensor an input or an output for a microcontroller? (a) input (b) output
- 38.🔍 Which is the odd one out? (a) a light sensor (b) a servo motor (c) a small display (d) a water pump
-
39.💡 An LED (with its resistor) is on pin 8. All pins start LOW. The program runs once:
set pin 7 LOW
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 -
40.💡 An LED (with its resistor) is on pin 7. 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 8 LOW
Is the LED ON or OFF at the end? (a) OFF (b) ON
Answer key
- False
- digital
- 5 V
- an LED
- analog
- ON
- a push button
- OFF
- a sound sensor
- input
- True
- OFF
- a buzzer
- a speaker
- an input
- a servo motor
- two
- input
- output
- output
- OFF
- a push button
- digital
- digital
- output
- OFF
- output
- OFF
- ON
- a motion sensor
- a water pump
- True
- an LED
- a light sensor
- a motion sensor
- a sound sensor
- input
- a light sensor
- OFF
- OFF
Free electronics lessons, practice and worksheets at talentjr.in/electronics-for-kids