- A A function that is executed after a certain event occurs
- B A function that is passed as an argument to another function
- C A function that is executed immediately
- D None of these
- Share this MCQ
Answer:
B
Share this MCQ
A callback function is a function that is passed as an argument to another function.
It is called (or "executed") when the event that it was passed to occurs.
Callback functions are often used to execute a certain task after an asynchronous operation has completed.
Share this MCQ