Asp.net Mvc(Engineering > Computer Science And Engineering ) Questions and Answers

Question 1. What are the various types of filters in an ASP.NET MVC application?
  1.    Authorization filters
  2.    Action filters
  3.    Result filters
  4.    All of these
Explanation:-
Answer: Option D. -> All of these





Question 2. Which of the followings are Actionselectors?
  1.    ActionName
  2.    NonAction
  3.    ActionVerbs
  4.    All of the above
Explanation:-
Answer: Option D. -> All of the above





Question 3. What is ActionResult()?
  1.    It is an abstract Class
  2.    It is a Concrete Class
  3.    Both A and B
  4.    None
Explanation:-
Answer: Option A. -> It is an abstract Class





Question 4. Which namespace is used for ASPX View Engine?
  1.    System.Web.Razor
  2.    System.Web.Mvc.WebFormViewEngine
  3.    Both A & B
  4.    None
Explanation:-
Answer: Option B. -> System.Web.Mvc.WebFormViewEngine





Question 5. The model is a _______
  1.    Shape of data
  2.    Html content
  3.    Collection of data
  4.    Type of data
Explanation:-
Answer: Option A. -> Shape of data





Question 6. What is the name of the configuration files that the App_Start folder contains?
  1.    BundleConfig.cs
  2.    FilterConfig.cs
  3.    RouteConfig.cs
  4.    All of these
Explanation:-
Answer: Option D. -> All of these





Question 7. What Request Processing technique follows ASP.Net?
  1.    Top-Down
  2.    Down-Up
  3.    Pipeline
  4.    Waterfall
Explanation:-
Answer: Option C. -> Pipeline





Question 8. WIF enables you to create a custom token. To be able to use the token, you must create a custom token handler by overriding which of the following?
  1.    SecurityToken
  2.    SecurityTokenHandler
  3.    SWTToken
  4.    Saml2SecurityTokenHandler
Explanation:-
Answer: Option B. -> SecurityTokenHandler





Question 9. Does MVC 6 was introduced new JSON project-based structure?
  1.    Yes
  2.    No
  3.    Both A & B
  4.    None
Explanation:-
Answer: Option A. -> Yes





Question 10. ______ attributes can be used for data validation in MVC.
  1.    DataAnnotations
  2.    Fluent API
  3.    DataModel
  4.    HtmlHelper
Explanation:-
Answer: Option A. -> DataAnnotations