Multiple choice technology programming languages

A section of code that responds to a particular interaction of the user with a gui control is called a ... ?

  1. dispatch function

  2. event handler

  3. control structure

  4. exception handler

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

An event handler is a subroutine or function that executes in response to a specific event, such as a user clicking a GUI button or typing text. Dispatch functions route messages, control structures guide execution flow, and exception handlers catch runtime errors rather than GUI interactions.