Photo by Joan Gamell on Unsplash
NodeJS Interview Questions
Try to find the answer of these questions yourself, this will make you remember more. If you don't get any answer then you can ask question in comment
S. No | Questions |
01. | What does the runtime environment mean in Node.js? |
02. | What is Node.js? |
03. | What is Node.js Process Model? |
04. | What are the data types in Node.js? |
05. | How to create a simple server in Node.js that returns Hello World? |
06. | How do Node.js works? |
07. | What is an error-first callback? |
08. | What is callback hell in Node.js? |
09. | What are Promises in Node.js? |
10. | What tools can be used to assure consistent style? |
11. | When should you npm and when yarn? |
12. | What is a stub? |
13. | What is a test pyramid? How can you implement it when talking about HTTP APIs? |
14. | How can you secure your HTTP cookies against XSS attacks? |
15. | How can you make sure your dependencies are safe? |
16. | What is Event loop in Node.js? How does it work? |
17. | What is REPL? What purpose it is used for? |
18. | What is the difference between Asynchronous and Non-blocking? |
19. | How to debug an application in Node.js? |
20. | What are some of the most popular packages of Node.js? |
21. | What is EventEmitter in Node.js? |
22. | How many types of streams are present in node.js? |
23. | What is crypto in Node.js? How do you cipher the secure information in Node.js? |
24. | What is the use of DNS module in Node.js? |
25. | What are the security mechanisms available in Node.js? |
26. | Name the types of API functions in Node.js. |
27. | How does Node.js handle child threads? |
28. | What is the preferred method of resolving unhandled exceptions in Node.js? |
29. | How does Node.js support multi-processor platforms, and does it fully utilize all processor resources? |
30. | What is typically the first argument passed to a Node.js callback handler? |
31. | How Node.js read the content of a file? |
32. | What is JIT and how is it related to Node.js? |
33. | What is difference between put and patch? |
34. | List types of Http requests supported by Node.js. |
35. | Why to use Express.js? |
36. | Write the steps for setting up an Express JS application. |
37. | Since node is a single threaded process, how to make use of all CPUs? |
38. | What does emitter do and what is dispatcher? |
39. | How to kill child processes that spawn their own child processes in Node.js? |
40. | What do you understand by Reactor Pattern in Node.js? |
41. | What are the key features of Node.js? |
42. | What are globals in Node.js? |
43. | What is chaining process in Node.js? |
44. | What is a control flow function? what are the steps does it execute? |
45. | What is npm in Node.js? |
46. | When to use Node.js and when not to use it? |
47. | Explain how does Node.js work? |
48. | Is Node.js entirely based on a single-thread? |
49. | How to make post request in Node.js? |
50. | Can you create http server in Node.js, explain the code used for it? |
51. | How to load html in Node.js? |
52. | How can you listen on port 80 with Node? |
53. | What is the difference between operational and programmer errors? |
54. | Why npm shrinkwrap is useful? |
55. | What is your favourite HTTP framework and why? |
56. | What are the Challenges with Node.js? |
57. | What is the difference between Node.js vs Ajax? |
58. | How Node.js overcomes the problem of blocking of I/O operations? |
59. | Mention the steps by which you can async in Node.js? |
60. | What are the timing features of Node.js? |
61. | What is LTS releases of Node.js why should you care? |
62. | Why should you separate Express 'app' and 'server'? |
63. | What is the difference between process.nextTick() and setImmediate()? |
64. | What is difference between JavaScript and Node.js? |
65. | What are the difference between Events and Callbacks? |
66. | Explain RESTful Web Services in Node.js? |
67. | How to handle file upload in Node js? |
68. | Explain the terms body-parser, cookie-parser, debug, jade, morgan, nodemon, pm2, serve-favicon, cors in Express JS? |
69. | How does routing work in Node.js |
70. | How Node prevents blocking code? |
71. | What is difference between promise and async await in node js? |
72. | How to use JSON Web Token (JWT) for authentication in node js? |
73. | How to build a microservices architecture with node js? |
74. | How to use Q promise in node js? |
75. | How to use locale (i18n) in node js? |
76. | How to Implement Memcached in Nodejs? |
77. | Explain Error Handling approaches in Nodejs? |
78. | How to generate and verify checksum of the given string in Nodejs |
79. | What is Callback function in node.js? |
80. | What is asynchronous programming in node.js? |
81. | How to implement asymmetric cryptography when signing and verify JSON Web Token (JWT) for authentication in node js? |