← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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