-
What is the C# equivalent of System.Single
A) Float (16-bit)B) Float (32-bit)C) Float(64-bit)
-
What does the volatile modifier do
A) The value of the object is written immediately on assignmentB) The value is lost after the system reads it.C) The system stored the value until the end of all current threadsD) The system always reads the current value of a volatile object at the point it is requested
-
What is the use of fixed statement
A) To stop the garbagecollector to move the objects in useB) To dispose the object at the end of the defined scopeC) To tell the garbage collector to move the object is useD) To fix the size of an object.
-
How do you import Activex component in to .NET
A) With AXImp.exeB) With Pinvoke.exeC) With Tlbimp.exe
-
Which class use to Read/Write data to memory
A) FileStreamB) NetworkStreamC) MemoryStream
-
Which of the following has stream as the base class
A) Buffered StreamB) MemoryStreamC) FileStream
-
In a multilevel hierarchy how are the constructors are called
A) TopDownB) BottomUpC) None
-
How do you make a class not instantiable
A) Making class as AbstractB) Having a Private constructorC) Making the class sealedD) Both A & B
-
Assemblies cannot be loaded side by side
A) TrueB) FalseExplanation: Assemblies can be loaded side by side
-
How do you load assembly to running process
A) Assembly.Load( )B) Assembly.LoadFrom( )C) Both
-
The assembly class is defined in
A) System.ReflectionB) SystemC) System.InteropServices
-
How do you add objects to hashtable
A) With Add methodB) With insert MethodC) With = operator
-
GetEnumerator( ) of Ienumerable interface returns
A) IenumeratorB) IcollectionC) Ienumerable
-
Which method is actually called ultimately when Console.WriteLine( ) is invoked
A) Append( )B) AppendFormat( )C) Tostring( )
-
How are the attributes specified in C#
A) Enclosed with in [ ]B) Enclosed with in ( )C) Enclosed with in { }
-
-
Which of the following statement is invalid with regards to constructor
A) Constructors should have the same name as class nameB) Constructors have to be public so that class can be instantiatedC) Constructors can not be overloadedExplanation: Constructors can be overloaded with different parameters
-
Which of the following is not a C# reserved keyword
A) IsB) AsC) InD) Of
-
Which of the following explicit type conversion is achieved with out loosing the original data value
A) Byte to LongB) Long to ByteC) Float to intExplanation: Byte stores up to 255 which can easily be stored in a long variable
-
How do you make CLR enforce overflow checking
A) Using Checked KeywordB) Using Unchecked KeywordC) With Try Catch
-
Which modifiers hides an inherited method with same signature
A) NewB) VirtualC) SealedExplanation: New hides the inherited method which was overridden by base class
-
The condition for If statement in C# is enclosed with in
A) ( )B) { }C) [ ]
-
If you need your own implementation of Equals method of object what needs to be done
A) Overload Equals methodB) Override Equals methodC) Implements Equals method
-
Which of the member is not a member of Object
A) Equals ( )B) GetType ( )C) ToString ( )D) Parse( )