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