Node js Interview Questions

Preparing for a Node Js Interview? Here are a list fo 60+ Interview questions that can help you prepare better.

  1. What is Node.js? Where can you use it?
  2. How else can the JavaScript code below be written using Node.Js to produce the same output?
  3. How do you update NPM to a new version in Node.js?
  4. Why is Node.js Single-threaded?
  5. How do you prevent/fix callback hell?
  6. Explain the role of REPL in Node.js.
  7. Name the types of API functions in Node.js.
  8. Which is the first argument typically passed to a Node.js callback handler?
  9. What are the functionalities of NPM in Node.js?
  10. What is the difference between Node.js and Ajax?
  11. Explain chaining in Node.js.
  12. What are “streams” in Node.js? Explain the different types of streams present in Node.js.
  13. What are exit codes in Node.js? List some exit codes.
  14. What are Globals in Node.js?
  15. What is the difference between AngularJS and Node.js?
  16. Why is consistent style important and what tools can be used to assure it?
  17. What are the timing features of Node.js?
  18. What is LTS releases of Node.js why should you care?
  19. Why should you separate Express ‘app’ and ‘server’?
  20. What is the difference between process.nextTick() and setImmediate() ?
  21. What is global installation of dependencies?
  22. If Node.js is single threaded then how it handles concurrency?
  23. How can you avoid callback hells?
  24. What’s the event loop?
  25. How Node prevents blocking code?
  26. What is Event Emmitter?
  27. What tools can be used to assure consistent code style?
  28. Provide some example of config file separation for dev and prod environments
  29. Explain usage of NODE_ENV
  30. Explain what is Reactor Pattern in Node.js?
  31. What is the relation of Node.js with JavaScript?
  32. Explain the term I/O in the context of Node.js.
  33. Which are the two types of API functions in Node.js
  34. List the tools and IDEs that are used for Node.js.
  35. Explain the role of the Callback function in Node.js.
  36. In the context of Node.js, differentiate between operational and programmer errors.
  37. Which is the framework that is most commonly used in Node.js?
  38. What are the two sections of event-driven programming?
  39. Explain the Control Flow function.
  40. List the steps involved in the Control Flow function.
  41. Can a user access DOM in a Node?
  42. In Node.js, how do you access the last expression?
  43. In Node.js, which command is used to import external libraries?
  44. What is the biggest drawback of Node.js?
  45. What is a Promise?
  46. What are ACID properties wrt to a database?
  47. Where and why should you not use NodeJS?
  48. Explain event loop
  49. What is stream and explain types of streams
  50. Explain child processes in Node
  51. Can we send/receive messages between child processes
  52. Explain file system module of Node
  53. How to scale Node application
  54. List down your favorite and most useful NPM library
  55. How to deploy Node application
  56. How to create classes and perform inheritance.
  57. What is an error-first callback?
  58. When should you npm and when yarn?
  59. What’s a test pyramid? Give an example!
  60. What’s your favorite HTTP framework and why?
  61. How can you secure your HTTP cookies against XSS attacks?
  62. How can you make sure your dependencies are safe?
  63. How can you listen on port 80 with Node?
  64. What’s the difference between operational and programmer errors?
  65. Why npm shrinkwrap is useful?
  66. What’s a stub? Name a use case.
  67. How can you implement it when talking about HTTP APIs?
Leave a Reply 0

Your email address will not be published. Required fields are marked *