- 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
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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.
Q 1 - AppCmd.exe is an application that helps you work with which objects? (Choose all that apply.)
Answer : E
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 - You are building an application in which you want to display updated information to a website every 15 minutes. What are efficient ways to manage the update? (Choose all that apply.)
B - HTTP polling with 1-minute intervals
D - HTTP polling with 15-minute intervals
Answer : E
E.WebSockets can be used to pass information between the client and server.HTTP polling with 15-minute intervals is a valid way to get the informa- tion within the required time frame.
Q 3 - What is the best way to intercept every request for an image on your site and ensure that a watermark is added to the image?
A - An HTTP module handling the AuthorizeRequest event
B - A custom HTTP handler set to handle .htm and .html pages
C - A custom HTTP handler configured to serve .png and .jpg files
D - An HTTP module handling the PostRequestHandlerExecute event
Answer : C
C.Intercepting every request for .jpg and .png files is the easiest way to consistently add watermarks to the images.
Q 4 - Your company has joined an industry accessibility group and you are a member. As one of your responsibilities, you have been asked to estimate the time it would take to modify your corporate site for accessibility. What should you consider to properly estimate the required time? (Choose all that apply.)
A - The amount of text in the website
B - The level of current usage of HTML helpers in your views
C - The numbers of controllers in the application
D - The complexity of your data entry forms
Answer : E
E.Because ASP.NET MVC 3 HTML helpers are not ARIA compliant, you need to write custom HTML helpers or use a different process to create HTML forms.Because many of the problems with accessibility are related to giving context to content, complex forms need a thorough review to ensure that labels and section context are provided for every element on the page.
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.
D - Add route.Remove("dvd/"); to the RegisterRoute method.
Answer : B
B.IgnoreRoute is the correct statement to use.
Q 6 - You are helping a client estimate the effort involved in adding comprehensive monitoring to an enterprise-level ASP.NET MVC application. Which of the following are useful considerations while building the estimate? (Choose all that apply.)
A - Adding health monitoring involves many choices. An evaluation will have to be performed to determine which monitors will be of real use.
B - Adding generic logging can be done as part of the rework. After the logging pattern has been established, you can add logging as part of any new work and as part of the refactoring process.
C - Adding tracing must be done completely and comprehensively before it can be of any use. There is no point in implementing tracing in a single part of the application if you are not going to refactor the application.
D - Creating a data collection set in Performance Monitor will provide all the needed information and can be set up in a few minutes.
Answer : E
E.Adding health monitors is an easy task. Determining which options pro- vide the information you need will be time-consuming because of the number of choices.Generic logging is a useful addition and can be added as items are refac- tored; it is not an all-or-nothing type of work.
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?
A - Create a set of unit tests that repeatedly test certain parts of the application. Run them continuously over a period of time to ensure that the application works as expected.
B - Create a set of web tests that exercise the application. Set a run load of 50 percent of your pilot users and run them in a constant load testing process to validate the application's behavior.
C - Create a set of web tests that exercise the application. Using a step approach, start with a minimal number of users and increase to the total number of users in the pilot program.
D - Create a set of web tests that exercise the application. Using a goal-based approach, set the process to run to 75 percent CPU utilization. When you reach that point, compare the results with the number of users in the pilot program.
Answer : C
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 - WIF enables you to create a custom token. To be able to use the token, you must create a custom token handler by overriding which of the following?
Answer : B
B.SecurityTokenHandler is the appropriate class to override for creating a custom token handler
Q 9 - Which of the following statement is false about MVC in .NET?
A - Complete control over your HTML Markup
B - Makes Test Driven Development (TDD) very difficult
C - Allows you to create SEO-friendly URLs for your site
D - Enables rich AJAX and jQuery integration
Answer : B
B.Makes Test Driven Development (TDD) very difficult
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