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