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