HomeQuizzesNode.jsEvents & Error Handling
beginnerND-BEG-004

Events & Error Handling

10 questions  ·  Node.js  ·  beginner level

📝10 questions
No time limit
🔄Retake anytime
Instant feedback

Preview questions

1
Multiple Choice

What does this output?

const EventEmitter = require("events")
const emitter = new EventEmitter()
emitter.on("greet", (name) => {
  console.log("Hello,", name)
})
emitter.emit("greet", "Rahul")
A
B
C
D
🔒 Sign in to answer and see explanation
2
Multiple Choice

What is the difference between .on() and .once()?

A
B
C
D
🔒 Sign in to answer and see explanation
3
True / False

An uncaught exception in Node.js will crash the entire process.

A
B
🔒 Sign in to answer and see explanation
+ 7 more questions
Sign in to attempt the full quiz
Free · No credit card required

Ready to attempt the full quiz?

Sign in to attempt all 10 questions, track your progress, and unlock AI-powered personalization.

← Browse all Node.js quizzes