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