-
A single line comments are implemented by
A) ‘B) //C) /*D) !—
-
Intermediate Language also facilitates language interoperability
A) TrueB) FalseExplanation: AS the managed code is bound to CTS & CLS it is language interoperable
-
.NET interfaces are not derived from IUnknown & they do not have associated GUID’s
A) TrueB) FalseExplanation: Only COM interfaces are derived from Iunknown and they do have GUIDs
-
Code written in C# can not used in which of the languages
A) J#B) Managed C++C) Vb.NetD) JavaExplanation: Java is not targeted to run under CLR
-
Which of the following is not a subclass of reference type
A) EnumerationsB) DelegatesC) ArraysExplanation: Enumerations are of Value Type
-
In C# a technique used to stream the data is known as
A) WadingB) SerializationC) CrunchingD) Marshalling
-
Stream object can not be initialized
A) TrueB) FalseExplanation: Stream is an abstract class ie it is the representation of bytes
-
-
Windows services created by C# app run only
A) Windows 95B) Windows 98C) Windows NT & Above
-
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
-
Can static methods be overridable?
A) YesB) NoC) It depends on how we declare themExplanation: Static methods cannot be overridable
-
The compiler throws an error if XML comments is not well formed
A) TrueB) False
-
What is a pre-requisite for connection pooling?
Multiple processes must agree that they will share the same connection, where every parameter is the same,
-
What is a satellite assembly?
When you write a multilingual or multi-cultural application in .NET, and want to distribute the core application separately from the localized modules, the localized assemblies that modify the core application are called satellite assemblies.
-
How do you inherit from a class in C#?
Place a colon and then the name of the base class. Notice that it is double colon in C++.
-
What does the keyword virtual mean in the method definition?
The method can be over-ridden.
-
Unsafe code in C# can be written in the flowing block:
Skill/Topic: AdvancedA) unsafe int ThisMethod(){}B) unsafe: int ThisMethod() { }C) int ThisMethod():unsafe { }
-
What is JIT?
Skill/Topic: IntermediateA) Java Internal TranslatorB) Just in TimeC) Just in Translation
C# Interview Questions
Ans