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