← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

Electronics lesson 22: Input and output pins · Set 916 · 40 questions
TalentJR

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

Answer key

  1. ON
  2. OFF
  3. two
  4. a speaker
  5. input
  6. an LED
  7. ON
  8. OFF
  9. a keypad
  10. OFF
  11. OFF
  12. input
  13. analog
  14. digital
  15. output
  16. OFF
  17. input
  18. ON
  19. analog
  20. input
  21. ON
  22. input
  23. input
  24. a servo motor
  25. a water pump
  26. analog
  27. ON
  28. OFF
  29. OFF
  30. a buzzer
  31. OFF
  32. 5 V
  33. OFF
  34. 0 V
  35. a push button
  36. a push button
  37. a sound sensor
  38. a small display
  39. OFF
  40. output

Free electronics lessons, practice and worksheets at talentjr.in/electronics-for-kids