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