Exam 70-536 : .NET Framework Application Development Foundation Part – 15

Question: You write the following code to implement the CompanyClass.MyMethod function.

You need to call the CompanyClass.MyMethod function dynamically from an unrelated class in your assembly. Which code segment should you use?

Correct Answer: 2 Question: You are developing an application for a client residing in Hong Kong. You need to display negative currency values by using a minus sign. Which code segment should you use?

Correct Answer: 2 Question: You are writing a method that accepts a string parameter named message. Your method must break the message parameter into individual … Click here to continue…..

Exam 70-536 : .NET Framework Application Development Foundation Part – 14

Question: You need to create a class definition that is interoperable along with COM. You need to ensure that COM applications can create instances of the class and can call the GetAddress method. Which code segment should you use?

Correct Answer: 3 Question: You write the following code to call a function from the Win32 Application Programming Interface (API) by using platform invoke.

You need to define a methon prototype. Which code segment should you use? [DllImport(“user32”)] public static extern int MessageBox(int hWnd, String text, String caption, uint type); [DllImport(“user32”)] public static extern int MessageBoxA(int … Click here to continue…..

Exam 70-536 : .NET Framework Application Development Foundation Part – 13

Question: You are developing an application that dynamically loads assemblies from an application directory. You need to write a code segment that loads an assembly named Company1.dll into the current application domain. Which code segment should you use?

Correct Answer: 1 Question: You are creating a class that uses unmanaged resources. This class maintains references to managed resources on other objects. You need to ensure that users of this class can explicitly release resources when the class instance ceases to be needed. Which three actions should you perform? (Each correct answer presents part of the solution. … Click here to continue…..

Exam 70-536 : .NET Framework Application Development Foundation Part – 12

Question: You create a method that runs by using the credentials of the end user. You need to use Microsoft Windows groups to authorize the user. You must add a code segment that identifies whether a user is in the local group named Clerk. Which code segment should you use?

Correct Answer: 2 Question: You are writing code for user authentication and authorization. The username, password, and roles are stored in your application data store. You need to establish a user security context that will be used for authorization checks such as IsInRole. You write the … Click here to continue…..

Exam 70-536 : .NET Framework Application Development Foundation Part – 11

Question: You are developing a server application that will transmit sensitive information on a network. You create an X509Certificate object named certificate and a TcpClient object named client. You need to create an SslStream to communicate by using the Transport Layer Security 1.0 protocol. Which code segment should you use? SslStream ssl = new SslStream(client.GetStream()); ssl.AuthenticateAsServer(certificate, false, SslProtocols.None, true); SslStream ssl = new SslStream(client.GetStream()); ssl.AuthenticateAsServer(certificate, false, SslProtocols.Ssl3, true); SslStream ssl = new slStream(client.GetStream()); ssl.AuthenticateAsServer(certificate, false, SslProtocols.Ssl2, true); SslStream ssl = new SslStream(client.GetStream()); ssl.AuthenticateAsServer(certificate, false, SslProtocols.Tls, true); Correct Answer: 4 Question: You are developing a method to encrypt sensitive data with … Click here to continue…..