Other questions in this quiz

2. What does the following syntax represent for digitalWrite(pin, VALUE)?

  • The amount of voltage used in the function
  • Either its corresponding voltage (LOW) or OV (ground) for HIGH
  • Either its corresponding voltage (HIGH) or OV (ground) for LOW
  • The value which is written to the selected pin

3. What does digitalWrite() do as a function?

  • Reads the value from a specific digital pin
  • Write a HIGH/LOW value to a digital pin
  • Configures the specified pin to behave either as an input or an output

4. What does digitalRead() do as a function?

  • Configures the specified pin to behave either as an input or an output
  • Reads the value from a specific digital pin
  • Write a HIGH/LOW value to a digital pin

5. What will happen if you don't set the pinMode() to OUTPUT, and connect and LED when calling digitalWrite() ?

  • It will enable the internal pull-up resistor, cutting all current
  • It will return an error message
  • It will enable the internal pull-up resistor, dimming the LED
  • It will my cause serious damage to your board

Comments

No comments have yet been made

Similar Computing resources:

See all Computing resources »See all DIGITAL(I/0) resources »