When do uncaught exceptions generate events?
A. When handlers are registered
B. When handlers are deregistered
C. When handler functions are called
D. When handlers do not have a matching catch clause
Answer: Option A
Solution(By Examveda Team)
Uncaught exceptions generate events, if any handlers are registered. Otherwise, the exception just makes Node print an error and exit.process.on("uncaughtException", function(e) { console.log(Exception, e); });
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