Home > Internet Programming > Quizzes > Node.js Fundamentals Test
Node.js Fundamentals Test
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 16% Most missed: “Use _____ to step through your code.”
Node.js Fundamentals Test
Time left 00:00
25 Questions

1. Node.js clusters are child processes that do NOT share server ports?
2. REPL is:
3. Which of these statements about Express is true?
4. What method is used to parse JSON using NodeJS?
5. In the following Express route stack - which handler will be called for 'GET /item/23'? app.get('/' - routes.index ); app.get('/item' - routes.item ); app.get('/item/:id' - routes.id ); app.post('/item/:id' - routes.post );
6. If you have a node program called example.js - how would that be excuted?
7. What interface is used to access folders on your local drive
8. How do you require a module?
9. Where does Node run on your machine?
10. What syntax is correct for reading environment variable?
11. Running the following code - what will the console output? var http = require('http'); http.createServer( function (request - response) { response.writeHead(200 - {'Content-Type': 'text/plain'}); response.end('Hello World\n'); } ).listen(8000); console.log('Server running at http://localhost:8000/');
12. What function is used to write out application errors/events?
13. Which company manages and maintains node.js?
14. What is a Buffer?
15. Which of these Express middleware stacks will NOT log favicon requests?
16. NPM is a...
17. WebSockets with Socket.io can be used to?
18. The Javascript used in node.js:
19. How can I call an object function from my module if my module name is 'iModule'?
20. Why is Node.js important?
21. Given the following route and request - which Request object property will hold the value of 20 in the Express handler? Route: '/post/:id' Request: '/post/30?start=20'
22. Which is a comment in node?
23. To exit out of a function you should use _____?
24. To declare a variable use what keyword?
25. How do you cause a function to be invoked at a specified time later?