NodeJS events quiz

NodeJS is built basing on event-driven architecture and understand how events in NodeJS work is one of the most important things for every NodeJS developers.

In this quiz topic we will cover the common API function around the events and events handling.

This quiz is in NodeJS quiz collection.

Start quiz
  • 1.

    How many listenners can be attached to an event in NodeJS?

  • 2.

    By default EventEmitters will print a warning if more than ______ listeners are added for a particular event

  • 3.

    Which methods can be use to switch listener functions asynchronous mode:

  • 4.

    When the EventEmitter object emits an event, all of the functions attached to that specific event are called _______. Any values returned by the called listeners are ignored and will be discarded.

  • 5.

    All objects that emit events are instances of the EventEmitter class

  • 6.

    Which of the following class is used to create and consume custom events in Node.js?

  • 7.

    Which method can be used to handle an event just only one time?

  • 8.

    If an EventEmitter does not have at least one listener registered for the 'error' event, and an 'error' event is emitted, the error is thrown, a stack trace is printed, and the Node.js process ____.

© 2017 QuizBucket.org