-
What is CLR?
Skill/Topic: BeginnerA) Common Library ReorganizationB) Csharp Language RespecificationC) Csharp Library RosterD) Common Language Runtime
-
A local C# variable declared in the for loop is in scope in
Skill/Topic: BeginnerA) Body of the for loopB) The method which includes the for loopC) Class
-
What is true about readonly variable in C# code?
Skill/Topic: BeginnerA) It's the same as a constantB) It's value can be assigned only onceC) You can never assign a value to it
-
You can inherit multiple interfaces in C#
Skill/Topic: IntermediateA) TrueB) FalseExplanation: A class can inherit multiple interfaces
-
To change the value of a variable while debugging , the following window is used
Skill/Topic: IntermediateA) DebugB) WatchC) Immediate
-
Which language is more suitable for writing extermely high performance mission critical applications?
Skill/Topic: AdvancedA) C#B) C++C) Visual Basic .NETExplanation: This is an area where C# lags.
-
What is automatic memory management in .NET known as:
Skill/Topic: AdvancedA) Managed CodeB) Smart CachingC) Garbage Collection
-
NET offers the follwing security features:
Skill/Topic: AdvancedA) Transaction based securityB) Code-based securityC) Both the aboveD) None of the above
-
Each process in a 32 bit Windows environment has the following amount of virtual memory available:
Skill/Topic: AdvancedA) 4 MBB) 400MBC) 4 GB
-
What are Namespaces
A) Naming convention used in .NetB) Group of classes categorized to avoid name clashC) None of the above
-
If we need to compare X to a value 3 how do we do it in C#
A) If (X==3)B) If (X=3)C) If (X.equals(3) )
-
-
Which method is implicitly called when an object is created
A) Main MethodB) Constructor MethodC) Destructor MethodExplanation: Constructor is the method which is implicitly created when ever a class is instantiated
-
In order to use stringbuilder in our class we need to refer
A) System.TextB) System.IOC) System.StringBuilder
-
How do you load assembly to running process
A) Assembly.Load( )B) Assembly.LoadFrom( )C) Both
-
Assemblies cannot be loaded side by side
A) TrueB) FalseExplanation: Assemblies can be loaded side by side
-
In the following cases which is not function overloading
A) Same parameter types but different return valuesB) Varying number of parametersC) Different parameters types but different return valuesD) Different parameters type but same return values
-
-
-
C# Interview Questions
Ans