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