← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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