MVC Framework Online Quiz


Advertisements

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

Answer : E

Explanation

E.HttpService.Get gets the output of a REST service.Visual Studio creates a proxy for you from the WSDL at the site you select.

Answer : E

Explanation

E.Your application needs to manage whatever information might be re- quired to access the state management system.Your application needs to manage the passing of the identifier between requests.

Answer : E

Explanation

E.Adding logic to the master page to determine the menu design enables your application to display a menu section that changes based on the area of the application the user is visiting.Referencing all style pages in a single place, the layout page, is an appropriate use.

Q 4 - You have been asked by a company to evaluate its web application as a user. The company wants you to review the website from outside its network and identify areas that might be problematic. You have been asked to consider SEO and accessibility. Which tools would be helpful for your review? (Choose all that apply.)

A - IIS SEO Toolkit

B - Internet Explorer F12 tools

C - IIS Logging tab

D - Bing Webmaster Toolkit

E - C and A both

F - All of the above

Answer : B

Explanation

B.The Internet Explorer F12 tool enables you view HTML and CSS code, which can help you detect structural problems or errors that might affect acces- sibility or SEO.

Answer : B

Explanation

B.It filters out those users not on an SSL connection before performing the more resource-intensive authentication check.

Answer : E

Explanation

E.Creating a globally applied action filter enables you to save the state of every action taken by the user while logged in to your site.By creating a globally applied action filter you have ensured that every action taken by the user will be logged.

Answer : E

Explanation

E.You can control the diagnostics setting through configuration within your Windows Azure–hosted application.Although the Windows Azure VMs get recycled when the role restarts, saving the logs to the Windows Azure storage system outside of your VM would ensure that they are available.You can treat the Windows Azure diagnostics system like a traditional logging tool by writing messages to the system.

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 - If you have View with @Page directive to inherit from ViewPage<TModel> then your View is_________.(where TModel is type of Model)

A - Partial View

B - Strongly Typed View

C - Content View

D - Template View

E - A and D both

F - All of the above

Answer : B

Explanation

B.Strongly typed views are bound to the model

Q 10 - Where are routes registered in ASP.NET MVC Application?

A - Controller

B - Web.config

C - Global.ascx

D - All of the above

E - C and D both

F - All of the above

Answer : C

Explanation

C.Routes are configured in Global.ascx in mvc

mvc_framework_questions_answers.htm
Advertisements