100% found this document useful (1 vote)
9 views1 page

NodeJs 2marks Question Bank

The document contains a series of questions related to Node.js, covering definitions, differences from JavaScript, HTTP server creation, and various concepts such as Buffers, REPL, web servers, callback functions, modules, and npm. It also includes inquiries about core modules, file system operations, and database connections in Node.js applications. Overall, it serves as a comprehensive guide for understanding the fundamentals and functionalities of Node.js.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
9 views1 page

NodeJs 2marks Question Bank

The document contains a series of questions related to Node.js, covering definitions, differences from JavaScript, HTTP server creation, and various concepts such as Buffers, REPL, web servers, callback functions, modules, and npm. It also includes inquiries about core modules, file system operations, and database connections in Node.js applications. Overall, it serves as a comprehensive guide for understanding the fundamentals and functionalities of Node.js.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1. Define NodeJs.

2. How is NodeJs different from Js?


3. Write a code to create a HTTP server in NodeJS.
4. What is Buffer?
5. What is REPL? Give an example.
6. Define webserver.
7. Define Callback function.
8. What are the 3 types of modules?
9. What is the purpose of the following code : var http = require (‘http’);
10. How to check the installed version of Nodejs?
11. Which type of applications we build using NodeJS?
12. What is the use of Registry?
13. List any four core modules of NodeJS.
14. What is the syntax for installing packages globally using npm?
15. What is the syntax for creating a basic web server using NodeJS?
16. For what require() is used in NodeJS?
17. What is the Node.js process model?
18. Explain the concept of module.exports in Node.js.?
19. What is the purpose of File System Module in NodeJS?
20. What is NPM?
21. What are the components of NPM?
22. Write the syntax to read a file asynchronously in Node.js using the fs module.
23. Explain the syntax for configuring a database connection in a Node.js application.
24. What is NodeJS?
25. What is REPL?
26. Define Anonymous function
27. What are the features of Node Js?
28. Write about arrow function.
29. What are the types of streams in NodeJs?
30. What is module? List its types

You might also like