Sat

Sat

  • 1.7k
  • 70
  • 28k

.Net Framework

Aug 29 2015 6:28 AM
Hi,
i have provided questions with options. Please tell me the correction options for every questions. Thanks in advance. 
 
# [assembly:CLSCompliant(true)]
1.compiler to ensure that no public exposed type has any construct that would prevent it from being accessed by another language
2.compiler that all private types are CLS-compliant
3.class loader that the type is type-safe
4.Common Language Runtime (CLR) to make the assembly type-safe so the CLR runs verification on the assembly
5.JIT compiler not to run verification since it has already been determined to be type-safe by the compiler
#You are working with an extremely large file and decide to use memory mapping to access it within your application. You quickly realize the file exceeds the logical memory space limit for mapped files
1.Increase the size of logical memory allocated to memory mapped files
2.Create multiple file mappings ensuring they are within the correct file size range
3. Create multiple views of the file ensuring they are within the correct memory size range.
4.Increase the Windows system swap file to accommodate the file size.
5.Split the file into smaller files ensuring they are within the correct file size range.  
#Your .NET application requires user interface resources that are dependent upon the culture of the user
1.UICulture.Current
2.Thread.CurrentThread.Culture
3.CultureInfo.CurrentCulture
4.Thread.CurrentThread.CurrentUICulture
5.Thread.CurrentContext
#What class do you use to programmatically access client configuration files
1.ConfigurationGroupManager
2.WebConfigManager
3 .ConfigurationSectionManager
4.ConfigurationManager
 5.ClientConfigurationManager
#What object do you use to access and update the contents of a memory-mapped file?
1.file
2.managed pointer
3.accessor
4.memory stream
5.mapped buffer
#When implementing ISerializable, what is the purpose of the SerializationInfo object
1.It contains formatter-specific information needed during the serialization process
2.It exposes events in the serialization lifecycle.
3.It contains basic information concerning the context in which the object is being serialized.
4.It is only used when serializing for the purpose of remoting.
5.It allows the implementer to add/retrieve the serialized data.
#How do you obtain a list of all of the methods registered with a particular event
1.Call GetRegisteredMethods() on the event.
2.Use a MulticastDelegate instead of an event.
3.Implement a custom collection and event accessors.
4.Use the EventsHelper class to get a list of registered methods.
5.Call GetInvocationList() on the event.  
 
 Please provide me answers as soon as possible...