Why does the Node rely on event handlers?
A. APIs are synchronous
B. APIs are asynchronous
C. APIs are reusable
D. None of the mentioned
Answer: Option B
Solution(By Examveda Team)
Because the APIs are asynchronous, Node relies on event handlers, which are often implemented using nested functions and closures.Related Questions on Server Side and Client Side Scripting
What are the events generated by the Node objects called?
A. generators
B. emitters
C. dispatchers
D. highevents
What is the function used to deregister event handler ‘f’?
A. deleteAllListeners(name)
B. deleteListener(name,f)
C. removerListener(name,f)
D. removeAllListeners(name)
What is the function used to remove all handlers for name events?
A. deleteAllListeners(name)
B. deleteListener(name,f)
C. removerListener(name,f)
D. removeAllListeners(name)
Join The Discussion