FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Executing or responding to a specific task when the appropriate event occurs
A
object-oriented programming
B
procedural programming
C
method
D
event handling
Explanation: 

Detailed explanation-1: -What is Event Handling? Event Handling is the mechanism that controls the event and decides what should happen if an event occurs. This mechanism have the code which is known as event handler that is executed when an event occurs. Java Uses the Delegation Event Model to handle the events.

Detailed explanation-2: -The onload event occurs when an object has been loaded. onload is most often used within the <body> element to execute a script once a web page has completely loaded all content (including images, script files, CSS files, etc.).

Detailed explanation-3: -In programming, an event handler is a callback routine that operates asynchronously once an event takes place. It dictates the action that follows the event. The programmer writes a code for this action to take place.

Detailed explanation-4: -A source generates an event and sends it to one or more listeners. Listener simply waits until it receives an event. Listener processes events and then returns. User interface element is able to “delegate” the processing of an event to a separate piece of code.

There is 1 question to complete.