Which of the following statements is/are true about event-handler in an…
2022
Which of the following statements is/are true about event-handler in an event-driven programming?
(i) It is a call back routine.
(ii) It operates asynchronously.
- A.
Only (i)
- B.
Only (ii)
- C.
Both (i) and (ii)
- D.
Neither (i) nor (ii)
Attempted by 165 students.
Show answer & explanation
Correct answer: C
Event handlers are callback routines triggered by specific events, making statement (i) true. They operate asynchronously without blocking the main thread, confirming statement (ii). Thus, both statements accurately describe event-driven programming.