Search This Blog

Tuesday, 26 March 2013

Microsoft 70-536 sample questions



Within your application, you need to monitor and control a service installed on the local machine. Which class do you need to use?

A.ServiceController
B.ServiceHost
C.ServiceManager
D.ServiceMonitor
E.ServiceBase




What method would you call on an object of type DirectoryInfo to retrieve a list of all subdirectories under that directory?

A.GetSubDirectories
B.GetDirectories
C.GetFileSystemInfos
D.GetFiles
 

Microsoft 70-536 sample questions

What are the restrictions imposed on the signature of a method that is called when a serialization event occurs?
            A.       Must not have any parameters (void)
            B.       Must not return anything (void)
           C.        Must take a StreamingContext parameter
           D.       Must return a StreamingContext object

You want to encrypt the network communication while sending an email to an smtp server. Which code should you use?

          A.SmtpClient.EnableEncryption = true;
          B.SmtpClient.UseEncryption = true;
         C.SmtpClient.EnableSsl = true;
         D.SmtpClient.UseSsl = true;



·         If a class implements ISerializable, it needs to provide a constructor that takes two parameters. What are the types of those parameters?


A.BinaryFormatter
B.StreamingContext
C.ObjectManager
D.SerializationInfo


·         Which code should you use to create a class that represents a Windows Service?


class Class2 : System.ServiceProcess.WindowsService
    {
        //implementation
    }

    class MyService : System.ServiceProcess.ServiceHost
    {
        //implementation
    }

    class MyService : System.ServiceProcess.ServiceBase
    {
        //implementation
    }

    class MyService : System.ServiceProcess.Service
    {
        //implementation
    }