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