Sie sind auf Seite 1von 49

11/4/12

70-516

Upload Safwan Hijazi View Public Profile My DocumentsMy CollectionsMy Reading FeedMy Stats MessagesNotificationsAccount | SettingsHelp Log Out
Search books, presentations, business, academics...

Explore Documents Books - FictionBooks - Non-fictionHealth & MedicineBrochures/CatalogsGovernment DocsHow-To Guides/ManualsMagazines/NewspapersRecipes/MenusSchool Work+ all categories RecentFeatured People AuthorsStudentsResearchersPublishersGovernment & NonprofitsBusinessesMusiciansArtists & DesignersTeachers+ all categories Most FollowedPopular

CCIE Labs Solutions


Pass CCIE Lab exam in First attempt by studying Real Labs.
www.passearly.com

Language: English

Microsoft EXAM 70-516


Accessing Data w ith Microsoft .NET Framew ork 4

www.scribd.com/doc/59053038/70-516

1/49

11/4/12

70-516

Total Questions:

87

Download exams also include self assessment and reporting features Practice 0 Go BackComment Link Embed Save for later
2

For interactive and self-paced preparation of exam 70-516, try our practice exams.

of 45 Readcast
Like Tw eet Share
0

Question: 1

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The application uses the ADO.NET Entity Framework to model entities. You define a Category class by writing the following code segment. (Line numbers are included for reference only.) public class Category { public int CategoryID { get; set; } public string CategoryName { get; set; } public string Description { get; set; } public byte[] Picture { get; set; } } You need to add a collection named Products to the Category class. You also need to ensure that the collection supports deferred loading. Which code segment should you insert at line 07?

A. public virtualList <Product> Products { {get; set; } } B. public static List <Product> Products get; set; C. public abstract List <Product> Products { get; set; } D. protected List <Product> Products { get; set; }

Answer: B

Question: 2

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Forms
www.scribd.com/doc/59053038/70-516 2/49

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Forms application. You plan to deploy the application to several shared client computers. You write the following code segment. (Line numbers are included for reference only.) 01Configuration config = ConfigurationManager.OpenExeConfiguration(exeConfigName); 02 Search This Document 03config.Save(); Search 04... You need to encrypt the connection string stored in the .config file. Search History: Which code segment should you insert at line 02?

B. ConnectionStringsSection section = config.GetSection("connectionStrings") as ConnectionStringsSection; section.SectionInformation.ProtectSection("DataProtectionConfigurationProvider"); p. C. ConnectionStringsSection section = config.GetSection("connectionString") as ConnectionStringsSection; section.SectionInformation.ProtectSection("RsaProtectedConfigurationProvider"); D. ConnectionStringsSection section = config.GetSection("connectionStrings") as ConnectionStringsSection; section.SectionInformation.ProtectSection("RsaProtectedConfigurationProvider");

Searching... Result 00 of = config.GetSection("connectionString") as ConnectionStringsSection; A. ConnectionStringsSection section 00 section.SectionInformation.ProtectSection("DataProtectionConfigurationProvider"); 00 results for result for

For interactive and self-paced preparation of exam 70-516, try our practice exams.

Answer: D

Question: 3

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Microsoft Windows Forms application. You plan to deploy the application to several shared client computers. You write the following code segment. (Line numbers are included for reference only.) 01?Dim config As Configuration = ConfigurationManager.OpenExeConfiguration(exeConfigName) 02 03config.Save() 04... You need to encrypt the connection string stored in the .config file. Which code segment should you insert at line 02? A. Dim section As ConnectionStringsSection = TryCast(config.GetSection("connectionString"), ConnectionStringsSection) section.SectionInformation.ProtectSection("DataProtectionConfigurationProvider") B. Dim section As ConnectionStringsSection = TryCast(config.GetSection("connectionStrings"), ConnectionStringsSection) section.SectionInformation.ProtectSection("DataProtectionConfigurationProvider") C. Dim section As ConnectionStringsSection = TryCast(config.GetSection("connectionString"), ConnectionStringsSection) section.SectionInformation.ProtectSection("RsaProtectedConfigurationProvider") D. Dim section As ConnectionStringsSection = TryCast(config.GetSection("connectionStrings"), ConnectionStringsSection) section.SectionInformation.ProtectSection("RsaProtectedConfigurationProvider")

Answer: D Question: 4

11/4/12

70-516

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The application connects to a Microsoft SQL Server database. The application uses the ADO.NET Entity Framework to model entities. The database includes objects based on the exhibit. (Click the Exhibit button.) The application includes the following code segment. (Line numbers are included for reference only.) 01using (AdventureWorksEntities context = new AdventureWorksEntities()){ 02 03foreach (SalesOrderHeader order in customer.SalesOrderHeader){ 04Console.WriteLine(String.Format("Order: {0} ", order.SalesOrderNumber)); 05foreach (SalesOrderDetail item in order.SalesOrderDetail){ 06Console.WriteLine(String.Format("Quantity: {0} ", item.Quantity)); 07Console.WriteLine(String.Format("Product: {0} ", item.Product.Name)); 08}

For interactive and self-paced preparation of exam 70-516, try our practice exams.

09} 10} You want to list all the orders for a specified customer. You need to ensure that the list contains the following fields: "Order number "Quantity of products "Product name Which code segment should you insert at line 02? A. Contact customer = context.Contact.Where("it.ContactID = @customerId", new ObjectParameter("customerId", customerId)).First(); B. Contact customer = context.Contact.Where("it.ContactID = @customerId", new ObjectParameter("customerId", customerId)).First(); C. context.ContextOptions.LazyLoadingEnabled = true; Contact customer = (From contact in context.Contact include("SalesOrderHeader.SalesOrderDetail") select conatct). FirstOrDefault();

D. Contact customer = (From contact in context.Contact include("SalesOrderHeader") select conatct). FirstOrDefault();

Answer: B

Question: 5

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. You use the ADO.NET Entity Framework to model entities. You write the following code segment. (Line numbers are included for reference only.) 01AdventureWorksEntities context = New AdventureWorksEntities ( 02http://localhost:1234/AdventureWorks.svc 03); 04 05var q = from c in context.Customers
www.scribd.com/doc/59053038/70-516 4/49

11/4/12

05var q = from c in context.Customers 06where c.City == "London" 07orderby c.CompanyName 08select c; You need to ensure that the application meets the following requirements: "Compares the current values of unmodified properties with values returned from the data source. "Marks the property as modified when the properties are not the same. Which code segment should you insert at line 04? A. context.MergeOption = MergeOption.AppendOnly; B. context.MergeOption = MergeOption.PreserveChanges; C. context.MergeOption = MergeOption.OverwriteChanges; D. context.MergeOption = MergeOption.NoTracking;

70-516

Answer: B

For interactive and self-paced preparation of exam 70-516, try our practice exams.

www.scribd.com/doc/59053038/70-516

5/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

6/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

7/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

8/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

9/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

10/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

11/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

12/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

13/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

14/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

15/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

16/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

17/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

18/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

19/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

20/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

11/4/12

70-516

Markav ip.com

AdChoices

www.scribd.com/doc/59053038/70-516

22/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

24/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

25/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

26/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

27/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

28/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

29/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

30/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

32/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

34/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

35/49

70-516

www.scribd.com/doc/59053038/70-516

36/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

37/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

39/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

40/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

41/49

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

11/4/12

70-516

www.scribd.com/doc/59053038/70-516

11/4/12

70-516

70-516
Download or Print Add To Collection 2.6K Reads 0 Readcasts 38 Embed Views

Published by kidprophet44 Follow


Search This Document

Search TIP Press Ctrl-FF to search anywhere in the document.

Sections
www.scribd.com/doc/59053038/70-516 44/49

11/4/12

70-516

Question: 1 Question: 2 Question: 3 Question: 4 Question: 5 Question: 6 Question: 7 Question: 8 Question: 9 Question: 10 Question: 11 Question: 12 Question: 13 Question: 14 Question: 15 Question: 16 Question: 17 Question: 18 Question: 19 Question: 20 Question: 21 Question: 22 Question: 23 Question: 24 Question: 25 Question: 26 Question: 27 Question: 28 Question: 29 Question: 30 Question: 31 Question: 32 Question: 33 Question: 34 Question: 35 Question: 36 Question: 37 Question: 38 Question: 39 Question: 40 Question: 41 Question: 42 Question: 43 Question: 44 Question: 45 Question: 46 Question: 47 Question: 48 Question: 49 Question: 50 Question: 51 Question: 52 Question: 53
www.scribd.com/doc/59053038/70-516 45/49

11/4/12

70-516

Question: 54 Question: 55 Question: 56 Question: 57 Question: 58 Question: 59 Question: 60 Question: 61 Question: 62 Question: 63 Question: 64 Question: 65 Question: 66 Question: 67 Question: 68 Question: 69 Question: 70 Question: 71 Question: 72 Question: 73 Question: 74 Question: 75 Question: 76 Question: 77 Question: 78 Question: 79 Question: 80 Question: 81 Question: 82 Question: 83 Question: 84 Question: 85 Question: 86 Question: 87

Info and Rating


Category: Uncategorized. Rating: Upload Date: 06/30/2011 Copyright: Attribution Non-commercial Tags: This document has no tags. Free download as PDF File (.pdf), Text File (.txt) or read online for free. Flag document for inapproriate content

Download and print this document


Choose a format to download in
www.scribd.com/doc/59053038/70-516 46/49

11/4/12

70-516

.PDF

.TXT Download

Recommended

www.scribd.com/doc/59053038/70-516

47/49

11/4/12

70-516

80 p. 70-516 Pradeep 10067 Reads

76 p. 70-516 New Questions Pawe Jezierski 1052 Reads

9 p. 70-516 bala.mca.2006 1366 Reads Next


www.scribd.com/doc/59053038/70-516 48/49

11/4/12

70-516

Leave a Comment

Submit Characters: 400

Submit Characters: ... About About Scribd Blog Join our team! Contact Us Advertise with us Get started AdChoices Support Help FAQ Press Partners Publishers Developers / API Legal Terms Privacy Copyright Copyright 2012 Scribd Inc. Language: English

www.scribd.com/doc/59053038/70-516

49/49