Which of the following is NOT an example of event-driven programming? A. Shaking the phone B. Pressing a button C. Converting text to speech D. Ticking of clock timer [clock timer event fires]

Answered on

Answer: C. Converting text to speech

This is not an example of event-driven programming because it is typically a direct result of a command or function call and not an event that occurs due to user interaction or other triggers. In event-driven programming, the flow of the program is determined by events such as user actions (mouse clicks, key presses), sensor outputs, or message passing from other programs.