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