EXPRESSJS QUIZ DESCRIPTION Total Questions −30 00 Max Time − 15:00 Which of the following statements holds good with respect to Node? Node being a single thread, and uses async function calls to maintain the concurrency Every API of Node js are asynchronous Node thread keeps an event loop and whenever any task get completed, it fires the corresponding event which signals the event listener function to get executed All of these What is REPL in Node.js? Eval Print Loop All of these Pug earlier known as ? Terse DRY Express Jade To use Mongo with Express.js, we need a client API for node. True False Can be true or false Cannot say Which of the following is a templating engine for Express? SUG PUG DUG NUG How can we check the current version of NPM? npm --version npm --ver npm help None of the above Define templating in ExpressJs ? Pug EJS Mustache All of the above Cookies are the complex, large files/data sent to the server with a client request and stored on the server-side. This statement is true. This statement is false. Can be true or false Cannot say. In Nodejs what is use of underscore variable in REPL session to store the result. to get the last command used. to get the last result. None of the above Where are the captured values populated regarding the route parameters? req.data app.locals req.params All of the above What will be the output of the following code in the console File: my_module.js exports.name = 'Zeus'; Code: var my_module = require('./mymodule'); console.log((function(settings){ return settings.split('').reverse().join('') })(my_module.name)); Error Zeus undefined sueZ In Express.js, the method app.all(path, callback [, callback ...]) can accept all HTTP methods: True False Insufficient data None of the above When did Express js Initial release? 2009 2010 2011 2012 What is the meaning of templating in Express.js? Pug EJS Mustache All of the above. To install Node.js express module $ npm install express $ node install express $ install express None of above How can we create chainable route handlers for a route path in ExpressJs ? Using app.route() Using app.routes() Using app.router() Using app.routing() What is Scaffolding in Express.js? Yeoman Express application generator Handler functions Both A & B ____________ allows us to easily create a skeleton for a web application Authentication APIs Debugging Scaffolding backlog arguments defines as? A port number on which the server should accept incoming requests Name of the domain The maximum number of queued pending connections An asynchronous function that is called when the server starts listening for requests. What are the steps used for Error Handling in Express.js? Create a Middleware Install Error Handler Middleware Both of these None APIs of Node.JS are Asynchronous Synchronous Both of the above. None of the above. Express was developed by ? Microsoft Facebook TJ Holowaychuk Rasmus Lerdorf Where is captured values are populated regarding route parameters are: req.data app.locals req.params Both A & B In Nodejs how node based web servers differ from traditional web servers? Node-based server uses a single-threaded model and can serve a much larger number of requests compared to any traditional server like Apache HTTP Server. . Node-based server process request much faster than a traditional server. There is not much difference between the two. All of the above Why a Node.JS code is pretty fast although being written in JavaScript? Node.JS internally converts JavaScript code to Java based code and then execute the same Node.JS internally converts JavaScript code to C based code and then execute the same Being built on Google Chrome's V8 JavaScript Engine None of the above Which of the following is the correct syntax to use Express.js in Node? var = require('express')(); var_require('express')(); var app = require('express')(); None of the above. _________ is a middleware which parses cookies attached to the client request object. cookie req.cookies cookie-parser None of the above Which of the following is true about RESTful web services? Webservices based on REST Architecture are known as RESTful web services Webservices uses HTTP methods to implement the concept of REST architecture Both of the above None of the above The Node.js modules can be exposed using module. Expose module module. exports None of the above Express.Js was initially released in November 2010 November 2011 December 2010 December 2011 Previous Next Total Question16 Wrong Answer13 Right Answer13