Question Detail

COM 101 COM 101 Past Questions Objective Question

Question

What is an Event
Options
A it is a sequential code
B it is a procedural program
C it is an action recognised by an object for which code can be written
Correct Answer
D it is an action recognised by an object for which code cannot be written
Correct Answer

Option C is the correct answer.

Detailed Explanation

In event-driven programming, an event is an action (like a mouse click or key press) recognized by an object, for which a programmer can write code to respond.

Hint

User actions like clicking generate these.

Question Info