Loading...
QUIZ

Certification Test

 
Que No. 1 ) What is Express.js' "view engine" used for?

A.) To manage session cookies
B.) To render dynamic web pages using templates
C.) To configure SSL certificates
D.) To define URL patterns


Que No. 2 ) Which method is used to start an Express.js application listening on a specified port?

A.) app.start()
B.) app.begin()
C.) app.listen()
D.) app.run()


Que No. 3 ) In Express.js, what is a "route parameter"?

A.) A parameter passed in the request body
B.) A parameter passed in the URL path
C.) A parameter used for cookie-based authentication
D.) A parameter used for session management


Que No. 4 ) What is the purpose of the app.delete() method in Express.js?

A.) To retrieve data from a database
B.) To serve static files
C.) To define a new route for handling DELETE requests
D.) To configure SSL certificates


Que No. 5 ) In Express.js, how can you access route parameters?

A.) Using the req.routeParams object
B.) Using the req.params object
C.) Using the req.query object
D.) Using the req.body object


Que No. 6 ) What is the role of the app.all() method in Express.js?

A.) To serve static files
B.) define a new route for handling all HTTP methods
C.) To retrieve data from a database
D.) To configure SSL certificates


Que No. 7 ) Which Express.js middleware is commonly used for handling authentication in web applications?

A.) express-auth
B.) passport
C.) express-authenticate
D.) auth-middleware


Que No. 8 ) What is the purpose of the next() function in Express.js middleware?

A.) To send an HTTP response
B.) To end the request-response cycle
C.) To pass control to the next middleware function
D.) To serve static files


Que No. 9 ) In Express.js, what is a "RESTful API"?

A.) A way to serve static files
B.) A set of routes and endpoints that adhere to the principles of Representational State Transfer
C.) A view engine
D.) A database management system


Que No. 10 ) What is Express.js' middleware used for logging HTTP requests and responses?

A.) express-logger
B.) request-logger
C.) morgan
D.) http-logger