-
-
Which of the following is an explusive feature of C#?
Skill/Topic: IntermediateA) Object OrientedB) ILC) XML documentation
-
Events in C# are impltemented using:
Skill/Topic: AdvancedA) Specialized DLLsB) PointersC) Delegates
-
Reference types are stored in :
Skill/Topic: AdvancedA) the HeapB) the stackC) the hard-disk
-
Assembly version information is stored in the:
Skill/Topic: AdvancedA) ManifestB) Garbage CollectorC) Heap
-
To access attributes, the following is used:
Skill/Topic: AdvancedA) reflectionB) pointersC) collections
-
Which are the important features of IL
A) Use of attributesB) Strong data typingC) Object orientation & use of interfaceD) All of the above
-
Which of the following is wrong with regards to Out keyword
A) For Out parameters a variable can be passed which has not initializedB) If Out parameters are not assigned a value with in the function body compiler throws errorC) The variable passed as a Out parameter must be static
-
Sealed class can be inherited
A) TrueB) FalseExplanation: Sealed class cannot be inherited
-
-
-
-
-
Is it possible to have different access modifiers on the get/set methods of a property?
No. The access modifier on a property applies to both its get and set accessors. What you need to do if you want them to be different is make the property read-only (by only providing a get accessor) and create a private/internal set method that is separate from the property.
-
Are private class-level variables inherited?
Yes, but they are not accessible, so looking at it you can honestly say that they are not inherited. But they are.
-
-
Which of the member is not a member of Object
A) Equals ( )B) GetType ( )C) ToString ( )D) Parse( )
-
How do you choose 1 entry point when C# project has more Main( ) method?
A) Not PossibleB) Using /Main along with class name in csc.exeC) By just providing the class name to csc.exe
-
Which of the following is not a member of stringbuilder
A) Append ( )B) Insert( )C) Replace ( )D) Substring( )
-
Which method is actually called ultimately when Console.WriteLine( ) is invoked
A) Append( )B) AppendFormat( )C) Tostring( )
C# Interview Questions
Ans