← Input and output pins lesson New set →

Electronics Worksheet: Input and Output Pins

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

Answer key

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

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