Q.1. You need to write a multicast delegate that accepts a DateTime argument and returns a Boolean value. Which code segment should you use?
A. public delegate int PowerDeviceOn ( bool, DateTime );
B. public delegate bool PowerDeviceOn ( Object, EventArgs );
C. public delegate void PowerDeviceOn ( DateTime );
D. public delegate bool PowerDeviceOn ( DateTime );
Q.2. You work as a developer at Company.com. You are creating an assembly named Company1. Company1 contains a public method. The global cache contains a second assembly named Company2.
You must ensure that the public method is only called from Company2. Which permission class should you use?
A. GacIdentityPermission
B. PublisherIdentityPermission
C. DataProtectionPermission
D. StrongNameIdentityPermission