Question: Question 1 (10 Marks): For each multiple-choice question, identify the correct answer for the given question. There is only one correct answer provided for each

 Question 1 (10 Marks): For each multiple-choice question, identify the correct

Question 1 (10 Marks): For each multiple-choice question, identify the correct answer for the given question. There is only one correct answer provided for each question: 1) Which

attribute is used to explicitly set the encoding? 2) What is the name of the middleware that we used in class to process multipart/form-data? Otype O method enctype O encoding multiple fileprocess Dmutex Dmulter 3) d) When using the above middleware to process a single file upload, what is the name of the property on the request object used to obtain the file info 4) What is the input type used to allow users to upload files to the server? type="binary" type="file" type="data" type="document" req.file req.fileInfo req.fileName req.body.file 5) The 3rd property module that is used in WEB322 to provide us with a "template engine" is : handlebars template-handlebars express-handlebars D handlebars.js 6) The express.js method of the "app" object used to register a "template engine" is: app.register) app.template() app.usel) app.engine() 7) Custom template helpers are defined in the template engine configuration using the following property: 8) The standard directory to store "partial" views is located at: helpers: 1) hbs: {} templates: () helpers: 1 9) The standard directory to hold "layout" views is" /views/partials/ /views/partials/templates /partials/templates /engine/partials 10) The syntax for including a partial view and providing it "data" (data in the parent view) is the following: { include data} {partialFileName > data) {{> partialFileName data }} {{ include partialFileName > data }} O /layouts/templates /engine/layouts /views/layouts/ /views/layouts/templates

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!