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
}