0% found this document useful (0 votes)
9 views2 pages

Node JS Question Bank

The document is a Node.js question bank containing various questions categorized into 2, 3, and 4 marks. It covers fundamental concepts such as Node.js, NPM, Event Loop, middleware in Express.js, and advanced topics like RESTful API creation, file uploads, and database connections. The questions are designed to assess knowledge on Node.js architecture, asynchronous operations, and best practices for application security.

Uploaded by

iamtahereditz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Node JS Question Bank

The document is a Node.js question bank containing various questions categorized into 2, 3, and 4 marks. It covers fundamental concepts such as Node.js, NPM, Event Loop, middleware in Express.js, and advanced topics like RESTful API creation, file uploads, and database connections. The questions are designed to assess knowledge on Node.js architecture, asynchronous operations, and best practices for application security.

Uploaded by

iamtahereditz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Node.

js Question Bank

2 Marks Questions

1. What is Node.js?

2. What is NPM?

3. What is the role of the Event Loop in Node.js?

4. Define REPL in Node.js.

5. What is the purpose of package.json?

6. What are buffers in Node.js?

7. What is the use of __dirname and __filename in Node.js?

8. What is the difference between process.nextTick() and setImmediate()?

9. What is a callback function in Node.js?

10. What is middleware in Express.js?

3 Marks Questions

1. Explain the difference between exports and module.exports in Node.js.

2. How does Node.js handle asynchronous operations?

3. What is the purpose of the Cluster module in Node.js?

4. Describe the use of streams in Node.js.

5. What is the difference between synchronous and asynchronous functions in Node.js?

6. How do you handle exceptions in Node.js?

7. What is the significance of the EventEmitter class in Node.js?

8. Explain the concept of middleware in Express.js.

9. What are the differences between readFile and createReadStream in Node.js?

10. How does Node.js handle child processes?

4 Marks Questions

1. Explain the architecture of Node.js and how it handles concurrent requests.

2. Describe the steps to create a RESTful API using Express.js.

3. How does the Event Loop work in Node.js?

4. What are the different types of streams in Node.js, and how are they used?
5. Explain the process of handling file uploads in Node.js.

6. How can you manage environment variables in a Node.js application?

7. Describe the process of connecting a Node.js application to a MongoDB database.

8. What are the best practices for securing a Node.js application?

9. How do you implement authentication in a Node.js application?

10. What are the common performance bottlenecks in Node.js applications, and how can they
be addressed?

11. What is the role of HTTP module in Node.js?

12. How do you create a simple server using Node.js?

13. What is CORS and how is it handled in Node.js?

14. Explain how to perform routing in Express.js.

15. What is the purpose of using body-parser middleware in Node.js?

16. Write a program which uses add Listener (). method of Event Emitter class.

17. Write a code for selecting all records from Player's table

18. Write a program to use SQL SELECT Qvery to show data from a table using node. JS and
MYSQLdata base.

19. Write a program which uses addlistener ( ) method of Event Emmitter class.

20. Write a Program to define Module Circle. JS which exports the functions area ( ) and
Circumference ( ) and display the details on console.

You might also like