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 - A significant change has been requested in an application maintained within your company. The application is a classic ASP application that uses custom Open Database Connectivity (ODBC) drivers to connect to a relational data repository on a mainframe computer. The CIO decided that the company needs to replace this 30-year-old system. The team that worked on the original project is made up of developers who have never worked with an object-oriented approach before. Which approaches would be the best to use when designing your initial schema in Entity Framework? (Choose all that apply.)

A - Create your own custom design because it’s too much work to manage an inexperienced staff.

B - Use Code First.

C - Use Model First or Use Database First.

D - None of the Above

E - B and D both

F - All of the above

Answer : C

Explanation

C.The use of the Entity Designer as an integral component in the Model First approach will help unfamiliar users to walk through the process.The use of the Entity Designer as an integral component in the Model First approach will help unfamiliar users to walk through the process.

Answer : C

Explanation

C.You handle the mapping of the request in the MapRequestHandler.

Q 3 - Your team is building an application and you are reviewing the functional specifications. Your team must include a stockticker in the UI that displays the companys stock price every 15 minutes, and include the capability to do partial saves of base objects as users step through a data entry wizard. You want to use the same approach for both requirements to make it easier to add functionality and maintain it going forward. What approach should you use?

A - Use JavaScript to refresh the page every 15 minutes and to manage whether wizard buttons are enabled or disabled.

B - Use AJAX to make asynchronous calls to the server on a timer for the stock price and to automatically save the base objects as the user navigates through the wizard.

C - Use jQuery to refresh the page every 15 minutes and to manage whether wizard buttons are enabled or disabled.

D - Use data validation annotations on the model to ensure that the stock price is validated every 15 minutes and that the client saves the base object information after every wizard step.

E - C and A both

F - All of the above

Answer : B

Explanation

B.The best way to solve this issue is to use AJAX to do asynchronous calls to check the stock price as well as manage the save process through the wizard.

Answer : C

Explanation

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

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.

Q 6 - You are working on a AJAX-heavy site, and your script files are separated in your solution by function. You have already implemented minification and bundling, but you are still getting reports of poor performance when users try to access your pages. You cannot replicate the problem locally. What additional steps can you take and still provide the same user experience?

A - Compress all scripts locally and have the users download the compressed files rather than the uncompressed files.

B - Turn IIS compression on, turn on the option to compress dynamic pages, and set the minimum file size to 0 so that every file served will be compressed.

C - Turn IIS compression on, disable dynamic page compression, and set the minimum file size to the size of your smallest bundled script file.

D - There is nothing more to do without redesigning the site.

E - A and C both

F - All of the above

Answer : C

Explanation

C.This is an appropriate next step to try to compress the script and style files being sent to the client.

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?

A - SecurityToken

B - SecurityTokenHandler

C - SWTToken

D - Saml2SecurityTokenHandler

E - A and B both

F - All of the above

Answer : B

Explanation

B.SecurityTokenHandler is the appropriate class to override for creating a custom token handler

Q 9 - You are developing an ASP.NET MVC 2 application. A view contains a form that allows users to submit their first name. You need to display the value that is submitted, and you must ensure that your code avoids crosssite scripting. Which code segment should you use?

A - <% Response.Write(HttpUtility.HtmlDecode(Model.FirstName)) %>

B - <%: Model.FirstName %>

C - <%= Model.FirstName %>

D - Both b&c will work

E - A and D both

F - All of the above

Answer : B

Explanation

B.<%: Model.FirstName %> avoids cross site scripting

Q 10 - Which Helper Method Returns binary output to write to the response?

A - Content

B - File

C - JavaScript

D - Json

E - C and D both

F - All of the above

Answer : B

Explanation

B.File Helper Method Returns binary output to write to the response

mvc_framework_questions_answers.htm
Advertisements