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