Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

17. Morning Wake Up Alarm - RoboticSchools

Total questions: 10

Worksheet time: 10mins

Name
Class
Date
1.

🕵️‍♂️ Let's be detectives! Can you find the input components from the list below?

a)

b)

c)

d)

2.

Let’s be inventors! Which option shows the right connections for the light sensor with the Arduino? 🔌💡

a)

b)

c)

d)

3.

How many times will this code run? 🤔

a)

1 time 🔁

b)

Forever (infinite loop) ♾️

c)

0 times 🚫

d)

10 times 🔟

4.

What is the correct data type to fill in the blank for the following code? 👩🏻‍💻

a)

int 🔢

b)

string 🧵

c)

float 🌊

d)

void 🚫

5.

The resistor that is placed in front of the LDR (Light) sensor is __________. 💡🔌

a)

Photoresistor 🌞

b)

Potentiometer 🎚️

c)

Thermistor 🌡️

d)

Current Sensing Resistor ⚡

6.

Magic Button Press! What happens when you press the push button?🔔

a)

The LED is turned off ⬇️ and the buzzer stops ❌

b)

The LED is turned on 💡 and the buzzer sounds 🎶

c)

The program resets 🔄🔄

d)

The program continues to loop without changes 🔄

7.

Morning Alarm with Light Sensor: After pressing the button, the LED turns off, and the buzzer stops. The Arduino enters a loop and won’t run the code again. How can you make it run the code again? 🔄

a)

Press the reset button on the Arduino 🔘

b)

Take a break and come back later! 💤

c)

Unplug the Arduino cable and plug it back in 🔌

d)

Give the Arduino a little shake! 🤗

8.

What is the MAIN purpose of using a while loop in this alarm project? 🔄⏰💻

a)

To make the LED brighter ✨

b)

To increase Arduino memory 💾

c)

To keep the alarm system running continuously ♾️

d)

To speed up code uploading 🚀

9.

What is the MOST likely reason this line is used in the program? 🔘🧠💻

a)

To reset the LDR sensor automatically 🌞

b)

To increase Arduino memory 💾

c)

To pause the program until the button is pressed ⏸️🔘

d)

To make the buzzer louder 🔔

10.

Which line of code is MOST important for stopping the buzzer after the system ends? 🔔🛑💻

a)

b)

c)

d)