Ensurepass.com : Ensure you pass the IT Exams
2018 Aug Microsoft Official New Released 70-494
100% Free Download! 100% Pass Guaranteed!
Recertification for MCSD: Web Applications
Question No: 51 – (Topic 4)
You develop an ASP.NET MVC application. The application has a controller named PeopleController.cs. The controller has an action method that returns a parent view. The parent view includes the following code. Line numbers are included for the reference only.
The application also contains a partial view named People. The parent view must display the partial view.
You need to add code at line 09 to display the partial view within the parent view.
Which two code segments will achieve the goal? Each correct answer presents a complete solution.
-
@{ Html.RenderPartial(“People”, Model);}
-
@Html.Partial(“People”, Model)
-
@Html.Display(“People”, Model)
-
@Html.Raw(“People”)
Answer: B
Explanation: By default, any partial view rendered by calling
@Html.Partial(quot;PartialViewNamequot;) will get the view model passed to the parent view.
Reference: How to populate mvc razor partial view http://stackoverflow.com/questions/13769707/how-to-populate-mvc-razor-partial-view
Question No: 52 HOTSPOT – (Topic 4)
You develop a new ASP.NET MVC web application. The application is hosted in an Azure Web Role. It includes the following code. Line numbers are included for reference only.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Answer:
Question No: 53 – (Topic 4)
You are testing an ASP.NET application.
The test plan requires that tests run against the application#39;s business layer. You need to use the test project template that meets this requirement.
Which template should you use?
-
Web Test Project
-
Load Test Project
-
Unit Test Project
-
Coded Test Project
Answer: C
Question No: 54 – (Topic 4)
You are developing an ASP.NET MVC application.
You need to authenticate clients by using an ASP.NET membership database. Which authentication method should you implement?
-
Kerberos
-
Forms
-
Basic
-
Windows
Answer: B
Question No: 55 – (Topic 4)
You are designing a localized ASP.NET application to support multiple cultures. You need to ensure that the application can be displayed in several languages. How should you implement this feature?
-
Use a resource (.resx) file.
-
Include language-specific content in the assembly manifest.
-
Use Systems.Collections.Generics.Dictionary to store alternative translations.
-
Ensure that all strings are marked internal.
Answer: A
Question No: 56 DRAG DROP – (Topic 4)
You are developing an ASP.NET MVC application in Visual Studio 2012. The application contains sensitive bank account data.
The application contains a helper class named SensitiveData.Helpers.CustomEncryptor.
The application must not display AccountNumber in clear text in any URL.
You need to build the view for the GetAccounts action.
How should you build the view? (To answer, drag the appropriate code segment to the correct location or locations. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
Answer:
Question No: 57 – (Topic 4)
You are designing an HTML5 website.
You need to design the interface such that the content is viewable in all types of browsers, including screen readers.
What should you do? (Each correct answer presents a complete solution. Choose all that apply.)
-
Ensure that content elements have valid and descriptive names.
-
Use Resource Description Framework (RDF) to describe content elements.
-
Convert HTML forms to XForms.
-
Use HTML5 semantic markup elements.
-
Annotate content elements with Accessible Rich Internet Application (ARIA) attributes.
Answer: D,E
Question No: 58 HOTSPOT – (Topic 4)
You are developing an ASP.NET MVC web application that enables users to open Microsoft Excel files.
The current implementation of the ExcelResult class is as follows.
You need to enable users to open Excel files. You have the following code:
Which code segments should you include in Target 1, Target 2 and Target 3 to implement the ExecuteResult method? To answer, select the appropriate option or options in the answer area.
Answer:
Explanation:
Target 1:
Name: AcceptTypes
Synopsis: stringArray = Request.AcceptTypes
Return s a String array containing the Multipurpose Internet Mail Extension (MIME) types accepted by the client. You can use this property to determine whether a client can accept certain response types, including application types such as Word or Excel, which are supported only by Internet Explorer.
Target 2, Target 3:
Example: Response.AddHeader(quot;content-dispositionquot;, quot;attachment; filename=MyExcelFile.xlsquot;); Response.ContentType = quot;application/ms-excelquot;;
Question No: 59 – (Topic 4)
You are designing an enterprise-level Windows Communication Foundation (WCF) application. User accounts will migrate from the existing system. The new system must be able to scale to accommodate the increasing load.
You need to ensure that the application can handle large-scale role changes.
What should you use for authorization? (Each correct answer presents a complete solution. Choose all that apply.)
-
Resource-based trusted subsystem model
-
Identity-based approach
-
Role-based approach
-
Resource-based impersonation/delegation model
Answer: B,C
Explanation: Advanced Maturity: Authorization as a Service
In the advanced level of maturity for authorization, role storage and management is consolidated and authorization itself is a service available to any solution that is service- enabled.
* The Trusted Subsystems Model
Once authorization is available as an autonomous service, the need for impersonation is eliminated. Instead of assuming the identity of the user, the application uses its own credentials to access services and resources, but it captures the user#39;s identity and passes
it as a parameter (or token) to be used for authorization when a request is made. This model is referred to as the trusted subsystem model, because the application acts as a trusted subsystem within the security domain.
Question No: 60 – (Topic 4)
You are developing an application that uses many small images. When the images load, the application runs slowly.
You need to improve the performance of the application. What should you do?
-
Preload all the images when the application starts to ensure that the images are cached.
-
Convert the images to ICO file format and stream all images on a single connection.
-
Host all images on a Microsoft Azure web role with multiple instances.
-
Combine all the images into a single image and use CSS to create sprites.
Answer: D
Explanation: Because browsers limit how many concurrent HTTP requests they make to a website, a web page with many small icon images can result in a longer load time. You can combine many small images into a single larger image – a CSS sprite – using the free ASP.NET Sprite and Image Optimization Library available from Microsoft.
Reference: CSS Sprites and the ASP.NET Sprite and Image Optimization Library
http://dotnetslackers.com/articles/aspnet/CSS-Sprites-and-the-ASP-NET-Sprite-and-Image- Optimization-Library.aspx
100% Ensurepass Free Download!
–70-494 PDF
100% Ensurepass Free Guaranteed!
–70-494 Dumps
EnsurePass | ExamCollection | Testking | |
---|---|---|---|
Lowest Price Guarantee | Yes | No | No |
Up-to-Dated | Yes | No | No |
Real Questions | Yes | No | No |
Explanation | Yes | No | No |
PDF VCE | Yes | No | No |
Free VCE Simulator | Yes | No | No |
Instant Download | Yes | No | No |