PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you use?

You use Microsoft .NET Framework 4 to develop an application that connects to a Microsoft SQL
Server 2008 database.
You add the following stored procedure to the database.
CREATE PROCEDURE [dbo].[InsertTag]
@Name nvarchar (15)
AS
INSERT INTO [dbo].[Tags] (Name) VALUES(@Name)
RETURN @@ROWCOUNT
You need to invoke the stored procedure by using an open SqlConnection named conn.
Which code segment should you use?

Which command should you run on Server1?

Your network contains a server named Server1 that runs Windows Server 2008 R2. On Server1, you
run route add 192.168.10.0 mask 255.255.255.0 172.23.1.2 metric 10. You restart Server1, and then
run the route command as shown in the exhibit. (Click the Exhibit button.)

You need to ensure that after you restart Server1, Server1 routes all of the traffic for
192.168.10.0/24 by using the router that has an IP address of 172.23.1.2. Which command should
you run on Server1?

Which two actions should you perform?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application uses the ADO.NET Entity Framework to manage Plain Old CLR Objects (POCO)
entities. You create a new POCO class. You need to ensure that the class meets the following
requirements:
It can be used by an ObjectContext.
It is enabled for change-tracking proxies.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose
two.)

which class should you inherit?

You are designing a Windows Presentation Foundation (WPF) application that connects to
a data access layer on a server. You have the following requirements for all security-related

exceptions: Exceptions that occur in the data access layer must be handled in a single
exception handler in the WPF application. Exceptions must pass customized messages
back to the WPF application. You need to recommend an approach for creating new
exception classes in the data access layer. From which class should you inherit?

You need to ensure that users cannot read passwords extracted from the database

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application connects to a Microsoft SQL Server database. The application stores user names and
passwords in the database. You need to ensure that users cannot read passwords extracted from the
database. What should you do?

Which approach should you recommend?

You are developing an Internet Web site. You plan to use SharePoint 2010 for content
management. The Web site design includes extensive graphics. You need to ensure that
the following project requirements for the site are met: ·Complex structural changes to
support the new branding .Consistency across all of its pages and subsites .Support for
multiple browsers Which approach should you recommend?

Which code segment should you add to the Web Part?

You plan to develop a Web Part that displays a SharePoint list. The Web Part will verify the list
permissions when users access by using the web.CurrentUser. DoesUserHavePermissions
method. You need to ensure that when users do not have permissions to the list, the Web Part
displays the company’s logo. Which code segment should you add to the Web Part?