← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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