← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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