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