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

Q 1 - AppCmd.exe is an application that helps you work with which objects? (Choose all that apply.)

A - Site

B - Users

C - Config

D - App

E - A, D and E

F - All of the above

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.

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?

A - object, EventArgs

B - HttpApplication

C - HttpContext

D - Object

E - A and D both

F - All of the above

Answer : C

Explanation

C.The ProcessRequest method takes the HttpContext parameter.

Answer : C

Explanation

C. Text revealed by mouse-overs not being picked up by search engine crawlers indicates that content is being skipped

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

C - Resource contention data in the Performance Wizard

D - Tracing from the System.Diagnostics namespace that logs the times of web service call and web service return

E - The Health Monitoring tool, for capturing security information related to the interaction with the web service

F - A and D both

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

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.)

A - GetRoles

B - GetRolesForUser

C - IsUserInRole

D - FindUsersInRole

E - B and C both

F - All of the above

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,

D - Filter out keywords and symbols.

E - B and C both

F - All of the above

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?

A - ContentResult

B - RedirectResult

C - PartialViewResult

D - None of above.

E - C and D both

F - All of the above

Answer : C

Explanation

C.PartialViewResult

mvc_framework_questions_answers.htm
Advertisements