![MVC Framework Tutorial](/mvc_framework/images/mvc-framework-mini-logo.jpg)
- MVC Framework Tutorial
- MVC Framework - Home
- MVC Framework - Introduction
- MVC Framework - Architecture
- MVC Framework - ASP.NET Forms
- MVC Framework - First Application
- MVC Framework - Folders
- MVC Framework - Models
- MVC Framework - Controllers
- MVC Framework - Views
- MVC Framework - Layouts
- MVC Framework - Routing Engine
- MVC Framework - Action Filters
- Advanced Example
- MVC Framework - Ajax Support
- MVC Framework - Bundling
- Exception Handling
- MVC Framework Useful Resources
- Questions & Answers
- MVC Framework - Quick Guide
- MVC Framework - Resources
- MVC Framework - Discussion
MVC Framework Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to MVC Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
![Questions and Answers](/images/questions_and_answers.png)
Q 1 - AppCmd.exe is an application that helps you work with which objects? (Choose all that apply.)
Answer : E
Explanation
E.AppCmd.exe enables the configuration of virtual sites.AppCmd.exe supports the administration of general configuration sections.AppCmd.exe manages the support of applications.
Q 2 - What is the first request sent to start HTTP polling?
Answer : B
Explanation
B.The first request to open a WebSocket connection is a standard HTTP GET. After the request is received, the browser sends a separate upgrade request
Q 3 - When you are creating a custom handler, what is the parameter being passed into the ProcessRequest method?
Answer : C
Explanation
C.The ProcessRequest method takes the HttpContext parameter.
Q 4 - You are modifying an ASP.NET MVC web application for a client. The client requires that the application must be viewable on Android devices in a UI format native to the device. What should you do? (Choose all that apply.)
A - Run the Install-Package jQuery.Mobile.MVC command using the Package Manager console.
B - Create a viewport and use @media queries to make styles that are specific for Android.
C - Create corresponding mobile views for the project targeted toward Android.
D - Modify the Web.config file in Shared views in the project to add in support for other browsers.
Answer : C
Explanation
C. Text revealed by mouse-overs not being picked up by search engine crawlers indicates that content is being skipped
Q 5 - You are developing an ASP.NET MVC application. You noticed a bug on the DVD controller of the application. You want to ignore the DVD pages until the bug is fixed. What should you do?
A - Add route.SetItem(route.Count, "dvd/"); to the RegisterRoute method.
B - Add route.IgnoreRoute("dvd/"); to the RegisterRoute method.
C - Add route.Insert(route.Count,"dvd/"); to the RegisterRoute method.
Answer : B
Explanation
B.IgnoreRoute is the correct statement to use.
Q 6 - Your application has an intermittent issue, based on the user's path through the application, in which the application seems to stop running. Even when running in debug mode, the application calls a web service and then stops. The application locks and the call never returns, thus the user's request is never completed and eventually times out. What performance or profiling tool will provide the most pertinent information about your application?
A - CPU sampling in the Performance Wizard
B - Memory allocation in the Performance Wizard
Answer : C
Explanation
C.Thread and resource profiling will give some understanding of what kind of actions are taking place that will cause a resource or thread to be blocked
Q 7 - Your ASP.NET MVC web application has just been released to a group of pilot users. The users are reporting periods of extreme performance degradation. You did not encounter performance issues during development or the quality assurance phase. What can you do in your development environment to understand what is occurring in the production environment?
Answer : C
Explanation
C. Starting from a midlevel count of users and then increasing to the total number of possible numbers should give you an idea of what is happening during the day-to-day running of the application in production
Q 8 - Which methods help the RoleProvider determine whether a user is assigned a role or set of roles? (Choose all that apply.)
Answer : E
Explanation
E.GetRolesForUser gets a list of roles for a user.IsUserInRole returns a Boolean on whether a particular user has a role
Q 9 - A SQL injection attack occurs when an application allows input submitted by the client to be run as part of a SQL command. What actions should a developer take to ensure that this doesn't happen? (Choose all that apply.)
A - Use Entity SQL because it does not suffer from the same risk.
B - Use SQLParameters to submit the parameters.
C - Use Linq-to-Entities to access the database,
Answer : E
Explanation
E.Using SQLParameters is the best way to manage this risk.Linq-to-Entities uses an object model as access into the data layer, so the risk is mitigated.
Q 10 - Which Action Result Renders a partial view, which defines a section of a view that can be rendered inside another view?
Answer : C
Explanation
C.PartialViewResult