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