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