Q3.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 event 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.