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