-
What is IL?
Skill/Topic: BeginnerA) Interchangeable LibraryB) Interoperable LanguagesC) Intermediate LanguageD) Interchangeable languages
-
To read user input from the console, the following statement is used
Skill/Topic: BeginnerA) Console.ReadLine();B) Console.Input()C) System.GetuserRequest();
-
We declare an integer variable 'x' in C# as
Skill/Topic: BeginnerA) x integer;B) integer x;C) int x;
-
A char in C# is
Skill/Topic: BeginnerA) 8 bitB) 16 bitC) 32 bitExplanation: Unicode characters are supported in C#
-
What is JIT?
Skill/Topic: IntermediateA) Java Internal TranslatorB) Just in TimeC) Just in Translation
-
Following are the features of .NET
Skill/Topic: IntermediateA) Language InteroperabilityB) Garbage CollectionC) Multiple Inheritance
-
Even if an exception hasn’t occurred, the ‘finally’ block will get executed
Skill/Topic: IntermediateA) YesB) NoExplanation: Finally block is always executed
-
A virtual method can’t be over ridden
Skill/Topic: IntermediateA) TrueB) False
-
We can call COM objects in C# using :
Skill/Topic: AdvancedA) DLLImportB) UsingDLLC) DLLCall
-
You can explicitly call the garbage collector
Skill/Topic: AdvancedA) TrueB) False
-
The following method is used to force the garbage collector :
Skill/Topic: AdvancedA) Garbage.CollectB) System.GC.Collect()C) Gc.Clea.Up()
-
The condition for If statement in C# is enclosed with in
A) ( )B) { }C) [ ]
-
How do you make CLR enforce overflow checking
A) Using Checked KeywordB) Using Unchecked KeywordC) With Try Catch
-
Which of the following explicit type conversion is achieved with out loosing the original data value
A) Byte to LongB) Long to ByteC) Float to intExplanation: Byte stores up to 255 which can easily be stored in a long variable
-
The compiler throws an error if XML comments is not well formed
A) TrueB) False
-
Which preprocessor directive are used to mark that contain block of code is to be treated as a single block
A) # define & #undefB) # Region & #EndRegionC) #Line
-
-
Public policy applies to
A) Shared assembliesB) Private assembliesC) Both
-
Which class use to Read/Write data to memory
A) FileStreamB) NetworkStreamC) MemoryStream
-
How do you import Activex component in to .NET
A) With AXImp.exeB) With Pinvoke.exeC) With Tlbimp.exe
C# Interview Questions
Ans