Lesson 7 Post-Test
1. What does the tone() function do?
Stops the buzzer
Sends digital output
Plays a sound at a set frequency
2. What argument is required in tone()?
Only pin number
Only duration
Pin and frequency
3. What does noTone(pin) do?
Sets pin to HIGH
Plays sound
Stops the tone on the pin
4. How do you control how long a tone plays?
Use a delay() after tone()
Set digitalWrite HIGH
Use analogWrite
5. What is a typical use of a buzzer in Arduino projects?
Reading sensors
Audio feedback or alerts
Controlling motors
6. What unit is used for tone frequency?
Watts
Decibels
Hertz
7. Why use noTone after tone?
It lowers the volume
It changes frequency
It stops the sound
8. What pin number is used in this example? tone(9, 1000)
1000
9
Both
9. What happens if you skip delay after tone?
The sound may not last long enough
It plays louder
It damages the buzzer
10. Can tone() be used to make simple melodies?
No, it’s only for alarms
Yes, by changing frequency and timing
Only with external amplifiers
11. In your own words, explain what you think the tone() function does in Arduino and how it might be used with a buzzer in a simple project.
12. "We’d love your feedback on this lesson. What went well, and what could be improved?"
Submit Answers