wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Arduino (leds, signs, on & off)

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Cathode is:

a)

A) Positive (+)

b)

B) Negative (–)

2.

Anode is:

a)

A) Positive (+)

b)

B) Negative (–)

3.

Which leg of the LED is the cathode and which one is the anode?

a)

A) Short leg = Cathode, Long leg = Anode

b)

B) Short leg = Anode, Long leg = Cathode

4.

What does delay() do, and delay(1000) means seconds or milliseconds?

a)

A) It speeds up the program; delay(1000) means seconds

b)

B) It pauses the program; delay(1000) means milliseconds

5.

For an LED, which one is correct?

a)

A) pinMode(led, OUTPUT)

b)

B) pinMode(led, INPUT)

6.

If I need to turn ON an LED, what code should I use?

a)

A) digitalWrite(led, LOW)

b)

B) digitalWrite(led, HIGH)

7.

If I need to turn OFF an LED, what code should I use?

a)

A) digitalWrite(led, HIGH)

b)

B) digitalWrite(led, LOW)

8.

If I need to blink an LED, what code should I use?

a)

A) Turn it ON, wait, then OFF, wait again (repeat)

b)

B) Only turn it ON once, no wait

9.

What does a resistor do?

a)

A) Increases current

b)

B) Limits current

10.

What’s the difference between void setup() and void loop()?

a)

A) setup() runs once, loop() runs continuously

b)

B) Both run only one time