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 - You are developing an application. One requirement is that part of your data access layer needs to be available to a third party, that wants to get this information from a REST URL in XML. Your company does not have experience with web services, but you have several websites running ASP.NET MVC 4. How could you design and provide these new services? (Choose all that apply.)
E.Using ASP.NET MVC is another way to create a controller that will return XML.
Q 2 - You are creating a solution in which the majority of the application is dynamic, but some areas can be cached for a long time. What kind of approach would you take? (Choose all that apply.)
E.Donut hole caching provides the ability to cache parts of each page.Donut caching is another approach that gives the ability to cache parts of the application.
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?
C.Intercepting every request for .jpg and .png files is the easiest way to consistently add watermarks to the images.
Q 4 - You are creating a different view for each of several different browsers/devices, such as Home.iemobile.cshtml and Home.IPad.cshtml. What is the best way to implement it so your application knows to look for the specific views?
B.Adding a DisplayModeProvider for each type of special view, such as IEMobile or IPad, informs the framework to use those views where the context condition is fulfilled.
Q 5 - You are globalizing an application and are compiling a list of items that need to be translated. Which items should be included on the list? (Choose all that apply.)
E. Images that are being used for menus likely have text displayed on them. That text should be localized, and extra sets of buttons might have to be created.Tooltips are supposed to give extra contextual help about the item the mouse hovers over. It is important to get them translated.
Q 6 - You want to implement bundling and minification in your site. What are some of the potential problems you need to be aware of? (Choose all that apply.)
E.Bundling every script into a single large file might decrease the effective- ness of concurrent downloading.Not separating scripts logically might lead to the user downloading scripts that will never be used. Although the download experience is maximized, it does not make sense to download unused scripts.
Q 7 - What type of authentication accepts login credentials that will be checked against the domain or local server and are sent in a hashed format?
B.Digest authentication is a challenge-response–based authentication method to ensure that user credentials are not sent over the network in clear text.
Q 8 - What kind of helper methods does WebSecurity provide? (Choose all that apply.)
F.Login is one of the methods provided by the WebSecurity helper.ResetPassword is one of the methods provided by the WebSecurity helper.CreateAccount is one of the methods provided by the WebSecurity helper.ChangePassword is one of the methods provided by the WebSecurity helper.
Q 9 - What are the primary differences between the AntiXSS Library and the default .NET Framework? (Choose all that apply.)
E.The AntiXSS Library is more performant than the traditional .NET Framework.AntiXSS takes an accepted-list approach, which means only those characters that have been approved are allowed through.AntiXSS was designed to allow additional support for globalization.
Q 10 - Whichtools is used for unit testing in MVC
A.MOQ are used to perform unit testing in MVC.