Which of the following statements is INCORRECT about event-loop in an…
2022
Which of the following statements is INCORRECT about event-loop in an event-driven programming?
- A.
It performs two functions in a continuous loop.
- B.
Its event-detection function detects the happening of an event.
- C.
Its event-handler function executes the corresponding function associated with that event.
- D.
It is a looping statement that is used to generate the same events repeatedly.
Attempted by 180 students.
Show answer & explanation
Correct answer: D
The event loop continuously monitors and processes events from sources rather than generating identical events repeatedly. Options A, B, and C describe standard behaviors accurately. Option D falsely claims the loop generates the same events repeatedly, making it the incorrect statement and the right choice.