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

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

A - Task an individual on staff to learn WCF, and have this individual develops and deploys these new services using WCF.

B - Use the Web API to create REST services using ApiController in which the serialization type is defined by the Accepts property of the browser.

C - Build a basic ASP.NET MVC 4 project in which the view simply passes through the information provided by the controller, and the controller manages the code for serializing the response.

D - Create an ASP.NET ASMX services file to get, serialize, and return the data.

E - B,C and D

F - All of the above

Answer : E

Explanation

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

A - Data caching

B - Donut hole caching

C - Donut caching

D - Windows AppFabric caching

E - B and C both

F - All of the above

Answer : E

Explanation

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.

Answer : C

Explanation

C.Intercepting every request for .jpg and .png files is the easiest way to consistently add watermarks to the images.

Answer : B

Explanation

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

A - Images that are used as part of the menu structure

B - The company logo

C - Server error-logging messages

D - Button tooltips

E - A and D both

F - All of the above

Answer : E

Explanation

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.

Answer : E

Explanation

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?

A - Basic authentication

B - Digest authentication

C - Forms authentication

D - Windows authentication

E - A and B both

F - All of the above

Answer : B

Explanation

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

A - Login

B - ResetPassword

C - CreateAccount

D - ChangePassword

E - DeleteAccount

F - A ,B , C and D

Answer : F

Explanation

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.

Answer : E

Explanation

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

B - Junit

C - xunit

D - Funit

E - C and D both

F - All of the above

Answer : A

Explanation

A.MOQ are used to perform unit testing in MVC.

mvc_framework_questions_answers.htm
Advertisements