wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Led Pattern

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

1. What is Arduino used for?

a)

a) Controlling home appliances remotely

b)

b) Monitoring environmental conditions

c)

c) Building interactive projects

d)

d) Analyzing stock market trends

2.

2. Why would Mira blink an LED in a specific pattern?

a)

a) To communicate information or create visual effects

b)

b) To demonstrate programming skills

c)

c) To predict the LED's future behavior

d)

d) To control the LED's size

3.
3. How is the delay between LED blinks controlled in Arduino programming?
a)
a) By predicting the user's mood
b)
b) By using the delay() function to set the time interval
c)
c) By adjusting the voltage
d)
d) By predicting the LED's temperature
4.

4. In a smart home project, which Arduino pin is commonly used to connect an LED for blinking?

a)

a) Pin 0

b)

b) Pin 13

c)

c) Pin A0

d)

d) Pin R2D2

5.
5. How can you create a short blink followed by a long blink pattern using Arduino?
a)
a) By predicting the weather
b)
b) By using special LED cables
c)
c) By alternating short and long delays between LED on and off states
d)
d) By changing the LED's size
6.
6. What does the "void loop()" function in Arduino code control?
a)
a) Predicts future loops
b)
b) Executes the loop pattern infinitely
c)
c) Measures the loop's diameter
d)
d) Changes the color of the loo
7.
7. What is the purpose of the pinMode() function in Arduino programming?
a)
a) Predicting the future of pins
b)
b) Measuring the size of pins
c)
c) Changing the color of pins
d)
d) Configuring a pin as an output or input
8.

8. Aanya is working on a project using Arduino. Which Arduino function should she use to turn off the LED?

a)

a) turnOff()

b)

b) digitalWrite()

c)

c) off()

d)

d) blinkOff()

9.
9. How does the millis() function contribute to more advanced LED patterns?
a)
a) By predicting the current time
b)
b) By controlling the LED's size
c)
c) By providing a timer for precise timing without using delays
d)
d) By changing the LED's temperature
10.

10. How does the digitalWrite() function differ when setting the LED to ON (HIGH) and OFF (LOW) states in controlling a traffic signal?

a)

a) Setting the LED to ON (HIGH) and OFF (LOW) states

b)

b) Changing the LED's color

c)

c) Predicting the LED's behavior

d)

d) Controlling the LED's temperature