ASP.NET MVC Fundamentals
Test your knowledge of ASP.NET MVC framework concepts including controllers, views, routing, action methods, and MVC patterns.
Questions
What is MVC?
- Model, Viewer, Controller
- Model, View, Controller
- Model, View, Control
- None of the above
ASP.Net MVC 2.0 new features include?
- Asynchronous Controller support
- Model validation support enhancements
- Progressive rendering using Html.RenderAction
- All of the above
Which one is not the usage of MVC Framework?
- Supports Test Driven Development
- Separation of the Concern
- Support REST URLs
- Renders view state
By default, MVC supports for Search Engine Optimization (SEO) and REST?
- True
- False
ASP.Net MVC 2.0 provides
- More control over view state
- More control over behaviour of the application
- More control over Client Ids
- All of the above
MVC 2.0 can incorporate below ASP.NET features
- Master Page &User Controls
- Caching
- Authentication and Authorization
- All of the above
Where will RouteTable be defined?
- Web.config
- Global.asax
- App.config
- All of the above
Which one is true?
- routes.MapRoute("Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" } );
- routes.MapRoute("Default", "Area/{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" } );
- Both a and b
- None of the above
Select applicable view Content options for creating strongly-typed view creation ?
- Create
- Edit
- Details
- Delete
- List
- All of the above
Which one is used to render Views in Asp.Net MVC 2.0?
- Page Events
- Html Helper
- Both a and b
- None of the above
How many Html Helper methods are available in MVC 2.0?
- 8
- 10
- 5
- 12
Unit Testing of Controller action methods are possible to test ?
- the view
- the view data returned
- the action result returned
- All of the above
Select ASP.Net MVC 2.0 framework action filters?
- OutputCache
- HandleError
- Authorize
- All of the above
How does controller identify a method as an action method?
- Method with ActionResult keyword
- All methods
- All methods except non-public methods
- All of the above
Which key word is used to pass data from Controller to View?
- ViewData
- ViewState
- Session
- All of the above