1 / 5
What makes Node.js I/O non-blocking?
-
-
-
-
Node.js uses a single-threaded event loop that registers callbacks for I/O, letting it handle many operations concurrently without blocking.
2 / 5
Which library implements Node's event loop and async I/O?
-
-
-
-
libuv is the C library that provides Node's event loop, thread pool, and cross-platform asynchronous I/O.
3 / 5
When do microtasks (like resolved Promises) run?
-
-
-
-
Microtasks (Promise callbacks, queueMicrotask) run after the current operation completes and drain before the loop proceeds to the next phase.
4 / 5
Which is a phase of the Node event loop?
-
-
-
-
The timers phase executes callbacks scheduled by setTimeout and setInterval; other phases include poll, check, and close callbacks.
5 / 5
What does setImmediate do relative to the loop?
-
-
-
-
setImmediate schedules its callback to run in the check phase, after the poll phase of the current iteration.