-
Which of the following keyword is used along with Main function in C#
A) VirtualB) StaticC) InheritsExplanation: Main functions are always static as it runs with out any instance
-
Instantiating a reference object requires the use of
A) New keywordB) = OperatorC) Set keyword
-
Which of the escape sequence is used for Backspace
A) oB) aC) b
-
For Each statement implicitly implements which interface
A) IEnumerableB) IcomparerC) NoneExplanation: All iterators implements Ienumerable
-
Array declaration in C# is done with
A) [ ]B) {}C) ( )
-
How do you check whether an Object is compatible with Specific Type
A) Is OperatorB) Like OperatorC) Compare operator
-
Which of these operator has the Highest Precedence
A) ( )B) &&C) | |
-
What is the first step to do anything with assembly
A) Load corresponding assembly to running processB) Query the assemblyC) None
-
Application Isolation is assured using
A) ThreadsB) RemotingC) ApplicationDomain
-
Which utility is used to create resource file
A) regasmB) resgenC) regsvrExplanation: Resgen.exe is used to create resource files in C#.net
-
What is the extension of a resource file
A) .csB) .rsxC) .resx
-
Stream object can not be initialized
A) TrueB) FalseExplanation: Stream is an abstract class ie it is the representation of bytes
-
To Configure .Net for JIT activation what do you do
A) Set JustinTimeActivation attribute to TrueB) Set JustinTimeActivation attribute to FalseC) None
-
Which method is used by COM+ to ascertain whether class can be pooled
A) Pooled( )B) IsPooled( )C) CanbePooled( )
-
-
Windows services created by C# app run only
A) Windows 95B) Windows 98C) Windows NT & Above
-
In C# a technique used to stream the data is known as
A) WadingB) SerializationC) CrunchingD) Marshalling
-
Can static methods be overridable?
A) YesB) NoC) It depends on how we declare themExplanation: Static methods cannot be overridable
-
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.
-
C# Interview Questions
Ans