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