PrepAway - Latest Free Exam Questions & Answers

Category: 70-521

Exam 70-521: Upgrade: Transition your MCPD .NET Framework 3.5 Windows Developer Skills to MCPD .NET 4 Windows Applications Developer

Which ObjectContext method should you call?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. You use the ADO.NET Entity Framework to model your entities. You use Plain Old CLR Objects (POCO) entities along with snapshotbased change tracking. The code accesses the POCO entities directly. You need to ensure that the state manager synchronizes when changes are made to the object graph. Which ObjectContext method should you call?

Which code fragment should you insert at line 12?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You want the application to contain a window as shown in the following exhibit. The application contains the following code fragment. (Line numbers are included for reference only.)
01 <Grid ShowGridLines=”True”>
02 <Grid.ColumnDefinitions>
03 <ColumnDefinition />
04 <ColumnDefinition />
05 <ColumnDefinition />
06 </Grid.ColumnDefinitions>
07 <Grid.RowDefinitions>
08 <RowDefinition />
09 <RowDefinition />
10 <RowDefinition />
11 </Grid.RowDefinitions>
12
13 <TextBlock FontWeight=”Bold” Grid.Row=”1″ Grid.Column=”0″>Quarter</TextBlock>
14 <TextBlock FontWeight=”Bold” Grid.Row=”1″ Grid.Column=”1″>Quarter 1</TextBlock>
15 <TextBlock FontWeight=”Bold” Grid.Row=”1″ Grid.Column=”2″>Quarter 2</TextBlock>
16 <TextBlock FontWeight=”Bold” Grid.Row=”2″ Grid.Column=”0″>Products</TextBlock>
17 <TextBlock Grid.Row=”2″ Grid.Column=”1″>100000</TextBlock>
18 <TextBlock Grid.Row=”2″ Grid.Column=”2″>150000</TextBlock>
19 </Grid>

You need to create the application window. Which code fragment should you insert at line 12?

What should you do?

You are creating a Windows application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. The business logic layer of the application is implemented by using Windows Communication Foundation (WCF). The application must provide maximum availability. It must be able to run in a reliable manner even when network connectivity is not available. You need to design the WCF service interaction for the business layer of the application. What should you do?

What should you do?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The application connects to a Microsoft SQL Server 2008 database. The database includes a table that contains information about all the employees. The database table has a field named EmployeeType that identifies whether an employee is a Contractor or a Permanent employee. You declare the Employee entity base type. You create a new Association entity named Contractor that inherits the Employee base type. You need to ensure that all Contractors are bound to the Contractor class. What should you do?

What should you do?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. You use Microsoft ADO.NET Entity Data Model (EDM) to model entities. You create an entity named Person with a schema defined by the following XML fragment.

<EntityType Name=”CPerson”> <Key> <PropertyRef Name=”PersonId” /> </Key> <Property Name=”PersonId” Type=”Int32″ Nullable=”false” /> <Property Name=”CompanyName” Type=”String” /> <Property Name=”ContactName” Type=”String” /> <Property Name=”ContactTitle” Type=”String” /> <Property Name=”Address” Type=”String” /> </EntityType>

You need to ensure that entities within the application are able to add properties related to the city, region, and country of Person’s address. What should you do?

What should you do?

You are designing an ntier Windows application by using Microsoft .NET Framework 4, Microsoft Visual Studio 2010, and Microsoft SQL Server 2008. The application will replace an existing client/server application. The existing application was created by using Microsoft Visual Basic 6.0 and consists of a series of COM components that access a SQL Server database.
You plan to move the existing COM components into a Windows Communication Foundation (WCF) tier. You need to ensure that the COM components can be replaced without impacting the existing user interface (UI) tier. You also need to ensure that the COM components can be replaced separately. What should you do?


Page 8 of 13« First...678910...Last »