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.

Answer: C. Both (i) and (ii)Event handlers are callback routines triggered by specific events, making statement (i) true. They operate asynchronously without blocking the main thread,…

  1. A.

    Only (i)

  2. B.

    Only (ii)

  3. C.

    Both (i) and (ii)

  4. D.

    Neither (i) nor (ii)

Attempted by 475 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.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs

Loading lesson…