1.
If you want to use a template engine that is compatible with Express, which of the following signatures should it conform to?
2.
In Express, which of the following will resolve a 404 response?
3.
Which of the following commands will you use to install the Express command line tool?
4.
Which of the following code snippets will you use to serve static images in two different directories named thisd and thatd?
5.

In Express, you must use the following command to be able to serve static files.


 
 
app.use('/static', express.static('mydir'))

 
 
Which of the following is a valid path to a file that can be loaded from the directory given in the command:

 
 

  1. http://localhost:3000/static/images/this.png



  2.  
  3. http://localhost:3000/static/starting.html




  4.  
  5.  


  6.  
6.

Which of the following HTTP request methods when directed to the route “/one” will result in the execution of the given handler:


 
 
app.all('/one', function (req, res, next) {
  console.log('Here ...')
  next()
})

 
 

  1. POST



  2.  
  3. PUT



  4.  
  5. DELETE




  6.  
  7.  


  8.  
7.
Which path string will you set to send requests to /items/$stuff?
8.
Which of the following middleware functions will you use to look up files in an application in the order in which the respective static directories were set in Express?
9.
You are using the express.urlencoded([options]) middleware in your Express application. Which of the following will you use to raise an error if the number of parameters that are allowed in the URL-encoded data exceeds 10 parameters?
10.
In a Windows environment, which of the following commands will you use to see all the internal logs in the DEBUG environment variable of an Express application?