Node JS

Node JS

Test your Node JS knowledge with free quizzes on MyCodeSkills covering core concepts.


  1. What is Node.js?

    • Programming language
    • JavaScript framework
    • JavaScript runtime
    • Browser engine
  2. What engine does Node.js use to execute JavaScript?

    • Chakra
    • SpiderMonkey
    • Rhino
    • V8
  3. Which command checks the installed Node.js version?

    • node --ver
    • node -v
    • npm -v
    • version node
  4. What does npm stand for?

    • Node Package Manager
    • New Package Manager
    • Node Project Manager
    • Node Program Module
  5. What command initializes a new Node.js project?

    • npm create
    • npm start
    • npm init
    • npm build
  6. What is Express.js in Node.js?

    • Database
    • Middleware
    • Web framework
    • Templating engine
  7. Which command installs Express in a Node project?

    • npm install express
    • npm get express
    • npm create express
    • install express
  8. What method is used to define a GET route in Express?

    • app.get()
    • app.route()
    • app.fetch()
    • app.listen()
  9. What does app.listen() do in an Express app?

    • Handles GET requests
    • Starts the server
    • Initializes the database
    • Loads middleware
  10. What is middleware in Express?

    • A route handler
    • A database query
    • A function that handles requests and responses
    • A model file
  11. What does JWT stand for in Node.js authentication?

    • Java Web Token
    • JavaScript Web Token
    • JSON Web Token
    • JSON Wide Token
  12. Which module is commonly used for real-time communication in Node.js?

    • Express
    • Socket.io
    • Axios
    • Redis
  13. What is the purpose of the cluster module in Node.js?

    • Create file clusters
    • Manage database connections
    • Enable multi-core usage
    • Split arrays
  14. Which package is used for caching in Node.js with Redis?

    • node-cache
    • express-cache
    • redis
    • cache-manager
  15. What does the helmet package do in a Node.js app?

    • User authentication
    • Protect from vulnerabilities
    • File uploads
    • Cookie management