Wednesday, February 19, 2014

C# - கேள்வி பதில் பகுதி - 8

Q 71. Which class should you use to access information about all drives on a local system?
A. DriveInfo

Q 72. Which enumeration specifies the text encoding when applying the DllImport attribute?
A. Charset

Q 73. What is an exception?
A. An exception is an abnormal condition at runtime resulting from an error or unexpected operation

Q 74. Which method of the Assembly class should you invoke to retrieve the assembly instance that invoked the currently executing code?
A. GetCallingAssembly

Q 75. How do you invoke the method(s) to which a delegate references?
A. Invoke the Invoke method, specifying the arguments required by the delegate

Q 76. What should you apply to a class to indicate its objects can be converted into a contiguous stream of bytes?
A. Serializable

Q 77 .Which class should you use inside a method to restrict access based upon an identity or role membership?
A. PrincipalPermission

Q 78. If I want to connect to a data source other than Jet, how do I know what connection string to use?

A. Not only is different connection information available for different types of data sources but also for different versions of different data sources. The best way of determining the connection string is to consult the documentation for the data source to which you want to attach.

Q 79. What is WQL?
A. WMI Query Language a subset of SQL, specifically designed to query managed WMI instances.

Q 80. Which attribute should you apply to uniquely identify a COM interface or class in the registry?
A. GUID

No comments:

Post a Comment