Q10. What is event? What is message? How is it related to an event?
Ans. An Event refers to the occurrence of an activity. An event is an object that gets generated when user does something such as mouse click, dragging, pressing a key on the keyboard, etc.
A Message is the information/ request sent to the application.
Each time an event occurs, it causes a message to be sent to the operating system.