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