1.
You want to modify the behavior of the app.param (name, callback) method in an Express 3 application by passing a function to app.param(). What will this function return after it has been modified?
2.
Which of the following actions will you complete if you are debugging an app in Express and you want to see logs from the router implementation only?
3.
In Express.js, assume that you have written multiple error-handling middleware functions. In the penultimate middleware function. you end up not calling the next function and also do not send the response. What will happen to your request in this case?
4.
In Express.js, which of the following commands will you use to see all the internal logs used if you are using the Windows OS?
5.

In Express.js, how often the following middleware function will be executed:


 
 
var app = express()

 
 
app.use(function (req, res, next) {
  console.log('something')
  next()
})
6.
In Express.js, assume that you are using the serve-static module to serve static files and you want to set how the serve-static method treats dot files when they are encountered. Which of these options would you use if you need the method to return 403 or call next() in case it encounters a dot file?
7.
In Express.js, in order to prevent the cross-site scripting attacks and to deal with other security concerns, you have decided to use the helmet package. How does the use of this package prevent such attacks?
8.
In Express.js, which of these features would you use to prevent the sniffing attack and the man-in-the-middle attack in Ajax POST requests?
9.
In Express.js, which of the following web-servers would you use to enable the security feature that would prevent the sniffing attack and the man-in-the-middle attack in Ajax POST requests?
10.
In Express.js, assume that your application is vulnerable since there are attackers who detect apps running Express and subsequently launch custom tailored attacks. Which of the following actions would you take to prevent this?