Q9. What do you understand by a message and an event?
Ans. An Event refers to the occurrence of an activity.
Events can occur through user actions such as mouse click or a key press, through programmatic control, or even as a result of another window’s actions.
Each time an event occurs, it causes a message to be sent to the operating system.
A Message is the information/request sent to the application.