Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 10 - No. 4)
In the alarm clock algorithm, how does the algorithm know when to trigger the alarm sound?
When the user presses a button.
When the current time equals the alarm time.
When the current time is close to the alarm time.
When the power button is pressed.
Explanation
The algorithm constantly checks if the current time matches the predefined alarm time to trigger the alarm.
Comments (0)
