Back to programming Quizzes

Node.js Quiz ( Intermediate )

This intermediate-level Node.js quiz is designed for developers who understand the basics and want to test real-world, applied concepts. It focuses on asynchronous behavior, event loop internals, modules, streams, error handling, and backend design patterns commonly asked in interviews.

15
Questions
~10
Minutes
10
Min Limit

Try a few sample questions

The question bank contains 45 questions. Your scored round uses up to 15 different questions. These samples are excluded from your round; try each one before opening its answer and explanation.

1. How does Node.js handle multiple concurrent requests?

  1. By creating a new thread for each request
  2. By using the event loop and non-blocking I/O
  3. By running synchronous code
  4. By using worker threads only
Reveal sample answer and explanation

Answer: By using the event loop and non-blocking I/O

Node.js uses an event-driven, non-blocking I/O model to handle concurrency.

2. What is the main purpose of the Event Loop?

  1. Execute synchronous code only
  2. Manage memory allocation
  3. Handle asynchronous callbacks
  4. Create child processes
Reveal sample answer and explanation

Answer: Handle asynchronous callbacks

The event loop processes asynchronous callbacks in Node.js.

3. Which phase of the event loop handles setTimeout callbacks?

  1. Poll phase
  2. Check phase
  3. Timers phase
  4. Close callbacks phase
Reveal sample answer and explanation

Answer: Timers phase

setTimeout callbacks are executed in the timers phase.