Explore topic-wise MCQs in Javascript.

This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Javascript knowledge and support exam preparation. Choose a topic below to get started.

1.

Which among the following POSIX signals generate events?

A. SIGDOWN
B. SIGFLOAT
C. SIGINT
D. SIGSHORT
Answer» D. SIGSHORT
2.

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» B. When handlers are deregistered
3.

Which of the following is an event emitter?

A. once
B. process
C. listeners
D. on
Answer» C. listeners
4.

Which function is a synonym for on()?

A. addListener()
B. listeners()
C. once()
D. add()
Answer» B. listeners()
5.

What is the function used to remove all handlers for name events?

A. deleteAllListeners(name)
B. deleteListener(name,f)
C. removeListener(name,f)
D. removeAllListeners(name)
Answer» E.
6.

What is the function used to deregister event handler ‘f’?$

A. deleteAllListeners(name)
B. deleteListener(name,f)
C. removeListener(name,f)
D. removeAllListeners(name)
Answer» D. removeAllListeners(name)
7.

What are the events generated by the Node objects called?

A. generators
B. emitters
C. dispatchers
D. highevents
Answer» C. dispatchers