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