← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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