-
An assembly can be stored across multiple files?
Skill/Topic: IntermediateA) YesB) No
-
Attributes
Skill/Topic: IntermediateA) Are data typesB) Return typesC) Used to provide extra information for the compiler
-
The 'finally' keyword is supported in C#?
Skill/Topic: IntermediateA) YesB) NoExplanation: Along with the try...catch...blocks
-
C# collection allows accessing an element using a unique key?
Skill/Topic: IntermediateA) KeySortB) DictC) HashTable
-
What is a multicast delegate?
Skill/Topic: IntermediateA) a delegate having multiple handlers assigned to itB) a delegate called multiple timesC) a delegate which has multiple implementations
-
Garbage Collector:
Skill/Topic: AdvancedA) Copies the IL code to the heapB) Destroys the pointersC) is responsible for automatic memory management
-
Assemblies are of the following types:
Skill/Topic: AdvancedA) SsharedB) PrivateC) Friendly
-
The following namespace is used for globalization:
Skill/Topic: AdvancedA) System.GlobalizationB) System.LocalizationC) System.Locale
-
The correct syntax for defining a delefate is:
Skill/Topic: AdvancedA) delegate {MyMethod( int y) }B) delegate void MyMethod(int y) ;C) delegate: MyMethod (int y)
-
Code running under the control of CLR is often referred as
A) Source CodeB) Managed CodeC) Unmanaged CodeExplanation: Source code is compiled to MSIL, which is generally known as managed code
-
It is not possible to debug the classes written in other .Net languages in a C# project.
A) TrueB) FalseExplanation: It is possible to debug the code as all are adhering to CTS & CLS
-
Which of the following application need not to have an entry point
A) Console applicationB) Windows applicationC) Class ModulesExplanation: Class modules are referred by another project which will have entry point.
-
What does Main method returns in C#
A) StringB) IntegerC) FloatExplanation: Main returns either Nothing or int
-
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
-
How to get the capacity of an array in C#
A) Count PropertyB) Length PropertyC) Ubound method
-
What happens when a C# project has more than 1 Main methods
A) Compiler throws warning messageB) Compiler throws Error messageC) Compiler successfully compiles
-
How are the attributes specified in C#
A) Enclosed with in [ ]B) Enclosed with in ( )C) Enclosed with in { }
-
What is the output of Vectors.RemoveAt(1)
A) Removes the object whose key is 1B) Removes the object whose value is 1C) Removes the object at position 1
-
What is the C# equivalent of System.Single
A) Float (16-bit)B) Float (32-bit)C) Float(64-bit)
-
C# Interview Questions
Ans