Loading

Quipoin Menu

Learn • Practice • Grow

node-js / How Node.js Works
mcq
Direction: Choose the correct option

Q1.

How does Node.js handle multiple concurrent requests?
A. By queuing requests sequentially
B. By using multiple processes
C. Using an event-driven, non-blocking I/O model
D. By creating a new thread for each request
Direction: Choose the correct option

Q2.

What is the event loop in Node.js?
A. A mechanism that handles asynchronous callbacks
B. A type of timer
C. A way to iterate over arrays
D. A loop that runs events in the browser
Direction: Choose the correct option

Q3.

Which of the following best describes Node.js architecture?
A. Single-threaded with blocking I/O
B. Multi-threaded with blocking I/O
C. Multi-process with shared memory
D. Single-threaded with non-blocking I/O
Direction: Choose the correct option

Q4.

What is the role of libuv in Node.js?
A. To parse JavaScript code
B. To provide the event loop and handle asynchronous I/O
C. To compile Node.js code
D. To manage npm packages
Direction: Choose the correct option

Q5.

In Node.js, what happens when an asynchronous operation completes?
A. The operation is repeated
B. The program exits
C. A callback function is placed in the event queue
D. The main thread is interrupted