2008年7月21日星期一

Microsoft 70-552(CSharp) exam

"UPGRADE:MCAD Skills to MCPD Wdws Dvlpr by Using MS.NET Frmwk", also known as 70-552(CSharp) exam, is a Microsoft certification.


Free 70-552(CSharp) pdf demo


3.You are configuring a ClickOnce deployment that allows users to install your application from the Internet zone under partial trust permissions. You want the application to access data that resides on the same remote server from which the application is installed. You need to add one or more types of data access that are allowed under partial trust permissions to your application. Which type or types of data access are allowed? (Choose all that apply.)


A:data access through HTTP with System.Net.WebClient

B:data access through XML Web services

C:data access through System.Data.SqlClient

D:data access through HTTP with System.Net.HttpWebRequest

Correct Answers: A, B, D


4.You are creating a class that performs complex financial calculations. The class contains a method named GetCurrentRate that retrieves the current interest rate and a variable named currRate that stores the current interest rate. You write serialized representations of the class. You need to write a code segment that updates the currRate variable with the current interest rate when an instance of the class is deserialized. Which code segment should you use?


A: <OnSerializing> _Friend Sub UpdateValue (ByVal context As StreamingContext) currRate = GetCurrentRate()End Sub

B: <OnSerializing> _ Friend Sub UpdateValue(ByVal info As SerializationInfo) info.AddValue("currentRate", GetCurrentRate())End Sub

C: <OnDeserializing> _ Friend Sub UpdateValue(ByVal info As SerializationInfo) info.AddValue("currentRate", GetCurrentRate())End Sub

D: <OnDeserialized> _Friend Sub UpdateValue (ByVal context As StreamingContext) currRate = GetCurrentRate()End Sub

Correct Answers: D


5.You are changing the security settings of a file named MyData.xml. You need to preserve the existing inherited access rules. You also need to prevent the access rules from inheriting changes in the future. Which code segment should you use?


A: Dim objSecurity As New FileSecurity( _ "MyData.xml", AccessControlSections.All)objSecurity.SetAccessRuleProtection(True, True)File.SetAccessControl("MyData.xml", objSecurity)

B: Dim objSecurity As New FileSecurity()objSecurity.SetAccessRuleProtection(True, True)File.SetAccessControl("MyData.xml", objSecurity)

C: Dim objSecurity As FileSecurity = _File.GetAccessControl("MyData.xml")objSecurity.SetAccessRuleProtection(True, True)

D: Dim objSecurity As FileSecurity = _File.GetAccessControl("MyData.xml")objSecurity.SetAuditRuleProtection(True, True)File.SetAccessControl("myData.xml", objSecurity)

Correct Answers: A


6.You create an application for your business partners to submit purchase orders. The application deserializes XML documents sent by your partners into instances of an object named PurchaseOrder. You need to modify the application so that it collects details if the deserialization process encounters any XML content that fails to map to public members of the PurchaseOrder object. What should you do?


A: Define and implement an event handler for the XmlSerializer.UnknownNode event.

B: Define a class that inherits from XmlSerializer and overrides the XmlSerialize.FromMappings method.

C: Apply an XmlInclude attribute to the PurchaseOrder class definition.

D: Apply an XmlIgnore attribute to the PurchaseOrder class definition.

Correct Answers: A


More information: 70-294 70-647 642-181 70-290 70-632 646-229 70-340 70-621 70-441 MB4-217

没有评论: