TS: Accessing Data by using Microsoft .NET Framework five 70-516 Test
Exam Name: Accessing Data with Microsoft .NET Framework some Exam Type: Microsoft Exam Code: 70-516 Total Questions: 87
Question: 1You work with Microsoft Visual Studio this year plus Microsoft .NET Framework some to set up an application.The job application utilizes that ADO.NET Entity Framework for you to model entities. You define a Categoryclass by publishing this particular signal segment. (Line quantities are involved pertaining to reference point only.)public school Category{public int CategoryID { get; set; }public string CategoryName { get; set; }public string Description { get; set; }public byte[] Picture { get; set; }}You need to create a collection named Products on the Category class. You also need to make sure thatthe group encourages deferred loading.Which code message should you insert at tier 07?
A. Public static number items { get; set; }B. Public confidential checklist items { get; set; }C. Public abstract number merchandise { get; set; }D. Protected checklist products { get; set; }
Answer: B
Question: 2You work with Microsoft Visual Studio 2010 and also Microsoft .NET Framework 4 to produce your WindowsForms application.You plan to release the necessary paperwork to be able to several propagated purchaser computers.You write the next code segment. (Line phone numbers tend to be included pertaining to a blueprint only.)01Configuration config = ConfigurationManager.OpenExeConfiguration(exeConfigName);0203config.Save();04...You need to encrypt the connection chain stored within the .config file.Which computer code segment should you insert at collection 02?
A. Connectionstringssection sections = config.getsection("connectionstring") since connectionstringssection; section.sectioninformation.protectsection("dataprotectionconfigurationprovider");B. Connectionstringssection section = config.getsection("connectionstrings") as connectionstringssection; section.sectioninformation.protectsection("dataprotectionconfigurationprovider");C. Connectionstringssection part = config.getsection("connectionstring") as connectionstringssection; section.sectioninformation.protectsection("rsaprotectedconfigurationprovider");D. Connectionstringssection area = config.getsection("connectionstrings") as connectionstringssection; section.sectioninformation.protectsection("rsaprotectedconfigurationprovider");
Answer: D
Question: 3You employ Microsoft Visual Studio the year 2010 and also Microsoft .NET Framework 4 to create a MicrosoftWindows Forms application.You approach to help deploy the required forms to be able to several shared buyer computers.You produce the subsequent code segment. (Line numbers are usually included pertaining to reference only.)
Page just one with 36 Exam Name: Accessing Data with Microsoft .NET Framework five Exam Type: Microsoft Exam Code: 70-516 Total Questions: 87
01?Dim config As Configuration =ConfigurationManager.OpenExeConfiguration(exeConfigName)0203config.Save()04...You have to encrypt this relationship string recorded inside the .config file.Which rule message in the event you insert from tier 02?
A. Dim section while connectionstringssection = trycast(config.getsection("connectionstring"), connectionstringssection) section.sectioninformation.protectsection("dataprotectionconfigurationprovider")B. Dim section since connectionstringssection = trycast(config.getsection("connectionstrings"), connectionstringssection) section.sectioninformation.protectsection("dataprotectionconfigurationprovider")C. Dim portion as connectionstringssection = trycast(config.getsection("connectionstring"), connectionstringssection) section.sectioninformation.protectsection("rsaprotectedconfigurationprovider")D. Dim part as connectionstringssection = trycast(config.getsection("connectionstrings"), connectionstringssection) section.sectioninformation.protectsection("RsaProtectedConfigurationProvider")
Answer: D
Question: 4You use Microsoft Visual Studio the new year in addition to Microsoft .NET Framework four to develop a strong application.The job application links to your Microsoft SQL Server database. The job application uses theADO.NETEntity Framework to model entities.The list comprises objects determined by the actual exhibit. (Click your Exhibit button.)The job application includes the examples below program code segment. (Line numbers will be incorporated for referenceonly.)01using (AdventureWorksEntities circumstance = fresh AdventureWorksEntities()){0203foreach (SalesOrderHeader order throughout customer.SalesOrderHeader){04Console.WriteLine(String.Format("Order: {0} ", order.SalesOrderNumber));05foreach (SalesOrderDetail item throughout order.SalesOrderDetail){06Console.WriteLine(String.Format("Quantity: {0} ", item.Quantity));07Console.WriteLine(String.Format("Product: {0} ", item.Product.Name));08}09}10}You would like to variety just about all the purchases regardin g some sort of given customer.You must ensure that the number is made up of the following fields:"Order number"Quantity of products"Product nameWhich code segment should you insert during brand 02?
A. Contact purchaser = context.contact.where("it.contactid = @customerid", brand-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 purchaser = (from contact inside context.contact include("salesorderheader.salesorderdetail")
Page only two involving 36 Exam Name: Accessing Data having Microsoft .NET Framework several Exam Type: Microsoft Exam Code: 70-516 Total Questions: 87
Select conatct). Firstordefault();D. Contact buyer = (from make contact with in context.contact include("salesorderheader") Select conatct). Firstordefault();
Answer: B
Question: 5You work with Microsoft Visual Studio the year of 2010 and Microsoft .NET Framework 4 to produce an application.You utilize the ADO.NET Entity Framework in order to type entities.You generate this following value segment. (Line volumes tend to be listed for referrals only.)01AdventureWorksEntities wording = New AdventureWorksEntities (02/AdventureWorks.svc03);0405var q = from c within context.Customers06where c.City == "London"07orderby c.CompanyName08select c;You need to guarantee how the application meets the examples below requirements:"Compares existing values with unmodified houses having values returned through the data source."Marks the house as modified when the particular attributes will not be the particular same.Which code portion in case 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;
Answer: B
Question: 6You utilize Microsoft Visual Studio 2010 and Microsoft .NET Framework several to generate an application.You develop ADO.NET Entity Framework that will type entities.You prepare this value segment. (Line volumes will be included intended for reference only.)01Dim context As New AdventureWorksEntities("/AdventureWorks.svc")0203Dim queen As var = From c In context.Customers _04Where c.City ="London" _05Order By c.CompanyName _06Select cYou ought to make sure that that application fulfills the examples below requirements:"Compares existing attitudes involving unmodified qualities having prices delivered from the files source."Marks the home as tailored should the attributes will not be the actual same.Which program code message must everyone stick in during range 02?
A. Context.mergeoption = mergeoption.appendonlyB. Context.mergeoption = mergeoption.preservechangesC. Context.mergeoption = mergeoption.overwritechangesD. Context.mergeoption = mergeoption.notracking
Answer: B
Question: 7You make use of Microsoft Visual Studio the year 2010 and Microsoft .NET Framework 4 to produce an application.You use the ADO.NET Entity Framework to type entities.
Page three regarding 36 Exam Name: Accessing Data along with Microsoft .NET Framework several Exam Type: Microsoft Exam Code: 70-516 Total Questions: 87
You create the following computer code segment. (Line numbers are involved for benchmark only.)01public partial class SalesOrderDetail : EntityObject02{03partial useless OnOrderQtyChanging(short value)04{0506{07...08}09}10}You have to determine whether the concept is known for a appropriate ObjectStateEntry instance.Which code section when you insert with tier 05?
A. If (this.entitystate != entitystate.Detached)B. If (this.entitystate != entitystate.Unchanged)C. If (this.entitystate != entitystate.Modified)D. If (this.entitystate != entitystate.Added)
Answer: D
Question: 8You employ Microsoft Visual Studio the year of 2010 in addition to Microsoft .NET Framework some to generate a great application.You utilize the ADO.NET Entity Framework to style entities.You write that using rule segment. (Line figures are listed for reference only.)01Public Partial Class SalesOrderDetail02Inherits EntityObject03Partial Sub OnOrderQtyChanging(value As Short)0405End Sub06End ClassYou ought to determine whether that object has a legitimate ObjectStateEntry instance.Which value message must an individual insert at series 04?
A. If me.entitystate entitystate.detached then end ifB. If me.entitystate entitystate.unchanged in that case stop ifC. If me.entitystate entitystate.modified then end ifD. If me.entitystate entitystate.added after that finish if
Answer: D
Question: 9You apply Microsoft Visual Studio 2010, Microsoft Sync Framework, in addition to Microsoft .NETFramework 4 to set-up a great application. You possess a ServerSyncProvider powering your MicrosoftSQL Server database. The list can be hosted with a Web server. Users will make use of the Internet toaccess the Customer database in the ServerSyncProvider.You write the examples below signal segment. (Line phone numbers are included pertaining to reference only.)01SyncTable customerSyncTable = brand new SyncTable("Customer");02customerSyncTable.CreationOption = TableCreationOption.UploadExistingOrCreateNewTable;0304customerSyncTable.SyncGroup = customerSyncGroup;05 this.Configuration.SyncTables.Add(customerSyncTable);You should make sure that the application meets this particular requirements:"Users can modify information in your area along with acquire modifications through the server."Only improved rows are generally shifted through synchronization.
Page 4 regarding 36 Exam Name: Accessing Data along with Microsoft .NET Framework some Exam Type: Microsoft Exam Code: 70-516 Total Questions: 87
Which code segment in the event you embed at range 03?
A. Customersynctable.syncdirection = syncdirection.downloadonly;B. Customersynctable.syncdirection = syncdirection.snapshot;C. Customersynctable.syncdirection = syncdirection.bidirectional;D. Customersynctable.syncdirection = syncdirection.uploadonly;
Answer: C
Question: 10You employ Microsoft Visual Studio 2010, Microsoft Sync Framework, plus Microsoft .NETFramework several to generate a strong application. You have a ServerSyncProvider powering a MicrosoftSQL Server database. The databases is definitely hosted for a Web server. Users will utilize this Internet toaccess this Customer list through the actual ServerSyncProvider.You write these value segment. (Line figures are listed with regard to reference only.)01Dim customerSyncTable As New SyncTable("Customer")02customerSyncTable.CreationOption = TableCreationOption.UploadExistingOrCreateNewTable0304customerSyncTable.SyncGroup = customerSyncGroup05Me.Configuration.SyncTables.Add(customerSyncTable)You need to guarantee that the application meets the particular using requirements:"Users might modify data locally plus receive improvements through the server."Only altered rows tend to be transferred in the course of synchronization.Which signal segment if you ever insert during br and 03?
A. Customersynctable.syncdirection = syncdirection.downloadonlyB. Customersynctable.syncdirection = syncdirection.snapshotC. Customersynctable.syncdirection = syncdirection.bidirectionalD. Customersynctable.syncdirection = syncdirection.uploadonly
Answer: C
Question: 11You use Microsoft Visual Studio 2010 as well as Microsoft .NET Framework several to build a new WindowsCommunication Foundation (WCF) Data Services service. The assistance attaches to your MicrosoftSQL Server 2008 database. The company is hosted by means of a good Internet Information Services (IIS) 6.0Web server. The application operates effectively inside this improvement environment. However, whenyou hook up to this service within the development server, attempting to revise or delete a good entityresults throughout an error. You should just be sure you can replace and delete entities to the productionserver. What in case you do?
A. Add this distinct program code on the InitializeService approach to the service. Config.SetEntitySetAccessRule ("*",EntitySetRights.WriteDelete | EntitySetRights.WriteInsert);B. Add this line of rule towards the InitializeService procedure for the service. Config.SetEntitySetAccessRule ("*",EntitySetRights.WriteDelete | EntitySetRights.WriteMerge);C. Configure IIS permitting that PUT in addition to DELETE verbs for that .svc Application Extension.D. Configure IIS to let that POST along with DELETE verbs to the .svc Application Extension.
Answer: C
Question: 12You make use of Microsoft Visual Studio the year 2010 and Microsoft .NET Framework four for you to build a WindowsCommunication Foundation (WCF) Data Services service. The company attaches for you to a MicrosoftSQL Server 2008 database. The service is hosted by simply an Internet Information Services (IIS) 6.0Web server. The application functions effectively from the advancement environment. However, when
Page some of 36
Original Resource :
Visit 70-516 Link : 70-516 Download PDF Link : 70-516
No comments:
Post a Comment