NEW
Font size
WorksheetsArduino (leds, signs, on & off)
Total questions: 10
Worksheet time: 5mins
Cathode is:
A) Positive (+)
B) Negative (–)
Anode is:
A) Positive (+)
B) Negative (–)
Which leg of the LED is the cathode and which one is the anode?
A) Short leg = Cathode, Long leg = Anode
B) Short leg = Anode, Long leg = Cathode
What does delay() do, and delay(1000) means seconds or milliseconds?
A) It speeds up the program; delay(1000) means seconds
B) It pauses the program; delay(1000) means milliseconds
For an LED, which one is correct?
A) pinMode(led, OUTPUT)
B) pinMode(led, INPUT)
If I need to turn ON an LED, what code should I use?
A) digitalWrite(led, LOW)
B) digitalWrite(led, HIGH)
If I need to turn OFF an LED, what code should I use?
A) digitalWrite(led, HIGH)
B) digitalWrite(led, LOW)
If I need to blink an LED, what code should I use?
A) Turn it ON, wait, then OFF, wait again (repeat)
B) Only turn it ON once, no wait
What does a resistor do?
A) Increases current
B) Limits current
What’s the difference between void setup() and void loop()?
A) setup() runs once, loop() runs continuously
B) Both run only one time
