Test Paper of Classes In C#

Take This Test

Section 1

1) You use Reflection to obtain information about a method named MyMethod. You need to ascertain whether MyMethod is accessible to a derived class. What should you do?
2) You are creating a class that uses unmanaged resources. This class maintains references to managed resources on other objects. You need to ensure that users of this class can explicitly release resources when the class instance ceases to be needed. Which three actions should you perform?
(Each correct answer presents part of the solution. Choose three.)
3) You are working on a debug build of an application. You need to find the line of code that caused an exception to be thrown. Which property of the Exception class should you use to achieve this goal ?
4) Your application uses two threads, named thread One and thread Two. You need to modify the code to prevent the execution of thread One until thread Two completes execution.
What should you do?
5) You work as a developer at ABC Solutions. You are creating an assembly named ABCBusiness. ABCBusiness contains a public method. The global cache contains a second assembly named ABCBusinessWorker. You must ensure that the public method is only called from ABCBusinessWorker. Which permission class should you use?
6) You are developing an application that receives events asynchronously. You create a WqlEventQuery instance to specify the events and event conditions to which the application must respond. You also create a ManagementEventWatcher instance to subscribe to events matching the query. You need to identify the other actions you must perform before the application can receive events asynchronously. Which two actions should you perform?
Choose two
7) Which class is optimized for key-based item retrieval from both small and large collections?
8) How to call an unmanaged function from your managed code by using platform invoke services.
9) There is an application which used two threads. How to prevent the execution of second thread until first thread completes execution?
10) Select a Type which meets following criteria: - Is a number. - Is not more than 65,535.
11) While developing an application that will perform mathematical calculations. How to ensure that application is able to perform multiple calculations simultaneously.
12) While developing a class that contains several child objects and a ProcessChildren method which performs actions on child objects. The class is serializable too. How to ensure that the ProcessChildren function is executed after the class object and all its child objects are reconstructed by de-serialization.
13) A network administrator creates a specific user account for a service application. You being developer of that application need to configure the application to run in the context of this specific user account. What should you do?
14) Which is the attribute that guarantees that all callers of a method, which calls a COM component, have required level of trust for COM interop?

Take This Test

Also check these C# test papers, these are one of most attempted test paper in this category.

Popular C# Papers

Test Paper of Classes In C#
Miscelleaneas questions related to Class and Objects in C#. Test paper 14 questions with a time lim...
Objects and Types in C#
Test focuses on object oriented concepts implemented in C#. Knowledge of Object Oriented Programin...
C# General Questions
Test your C# knowledge.
C# Questions - Console I/O, Comments, Preprocessor Directives etc.
C# Questions on Console I/O, Comments, Preprocessor Directives, Objects and Types.
C Sharp Fundamentals
Copy Of C# General Questions
Test your C# knowledge.