ASP.NET MVC Fundamentals

Test your knowledge of ASP.NET MVC framework concepts including controllers, views, routing, action methods, and MVC patterns.

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is MVC?

  1. Model, Viewer, Controller
  2. Model, View, Controller
  3. Model, View, Control
  4. None of the above
Question 2 Multiple Choice (Single Answer)

ASP.Net MVC 2.0 new features include?

  1. Asynchronous Controller support
  2. Model validation support enhancements
  3. Progressive rendering using Html.RenderAction
  4. All of the above
Question 3 Multiple Choice (Single Answer)

Which one is not the usage of MVC Framework?

  1. Supports Test Driven Development
  2. Separation of the Concern
  3. Support REST URLs
  4. Renders view state
Question 4 True/False

By default, MVC supports for Search Engine Optimization (SEO) and REST?

  1. True
  2. False
Question 5 Multiple Choice (Single Answer)

ASP.Net MVC 2.0 provides

  1. More control over view state
  2. More control over behaviour of the application
  3. More control over Client Ids
  4. All of the above
Question 6 Multiple Choice (Single Answer)

MVC 2.0 can incorporate below ASP.NET features

  1. Master Page &User Controls
  2. Caching
  3. Authentication and Authorization
  4. All of the above
Question 7 Multiple Choice (Single Answer)

Where will RouteTable be defined?

  1. Web.config
  2. Global.asax
  3. App.config
  4. All of the above
Question 8 Multiple Choice (Single Answer)

Which one is true?

  1. routes.MapRoute("Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" } );
  2. routes.MapRoute("Default", "Area/{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" } );
  3. Both a and b
  4. None of the above
Question 9 Multiple Choice (Single Answer)

Select applicable view Content options for creating strongly-typed view creation ?

  1. Create
  2. Edit
  3. Details
  4. Delete
  5. List
  6. All of the above
Question 10 Multiple Choice (Single Answer)

Which one is used to render Views in Asp.Net MVC 2.0?

  1. Page Events
  2. Html Helper
  3. Both a and b
  4. None of the above
Question 11 Multiple Choice (Single Answer)

How many Html Helper methods are available in MVC 2.0?

  1. 8
  2. 10
  3. 5
  4. 12
Question 12 Multiple Choice (Single Answer)

Unit Testing of Controller action methods are possible to test ?

  1. the view
  2. the view data returned
  3. the action result returned
  4. All of the above
Question 13 Multiple Choice (Single Answer)

Select ASP.Net MVC 2.0 framework action filters?

  1. OutputCache
  2. HandleError
  3. Authorize
  4. All of the above
Question 14 Multiple Choice (Single Answer)

How does controller identify a method as an action method?

  1. Method with ActionResult keyword
  2. All methods
  3. All methods except non-public methods
  4. All of the above
Question 15 Multiple Choice (Single Answer)

Which key word is used to pass data from Controller to View?

  1. ViewData
  2. ViewState
  3. Session
  4. All of the above