MVC & Web Api - MCQ: Duration: 30mins Marks: 20
MVC & Web Api - MCQ: Duration: 30mins Marks: 20
Duration: 30mins
Marks: 20
11) Write the correct order for the life cycle of an ASP.NET MVC page a)App
Initialization b)Routing c) Locate and Invoke Controller action
d) Instantiate and execute Controller e) Instantiate and render view
12) Write the correct order of the default route present in RouteConfig.cs
a) Action Name b)Controller Name c) Parameters that passes to the action
19) Which of the following is used to check the validity of the model in Web API?
a. Model.Valid
b. Model.IsValid
c. ModelState.IsValid
d. ModelState.Valid
20) Web API sends which of the following status code on successful execution?
a. 200
b. 404
c. 500
d. 201