-
Which is the first level of compilation in the .NET languages?
Skill/Topic: BeginnerA) CLRB) ILC) Platform-specific codeExplanation: Intermediate Language
-
IL code compiles to
Skill/Topic: BeginnerA) Platform-specific Executable codeB) Byte CodeC) .NET CodeExplanation: The CLR compiles the IL into Platform-specific Executable code
-
What is IL?
Skill/Topic: BeginnerA) Interchangeable LibraryB) Interoperable LanguagesC) Intermediate LanguageD) Interchangeable languages
-
How do you deploy an assembly?
Skill/Topic: AdvancedA) Using MSI installerB) using a CAB archiveC) using XCOPYD) All of the above
-
How does a running application communicate or share data with other applicxation running indifferent application domains?
Skill/Topic: AdvancedA) using ExceptionsB) using attributesC) using .NET remoting services.
-
We need to register a private assembly in the Windows registry in order to use it.
Skill/Topic: AdvancedA) TrueB) FalseExplanation: We just need to copy it in the folder where the executable is located or in a subfolder below it..
-
We inherit a class using the following syntax:
Skill/Topic: AdvancedA) class DerivedClass: BaseClass{ }B) class DerivedClass:: BaseClass{ }C) class BaseClass :DerivedClass { }
-
The following is the namespace used for Reflection:
Skill/Topic: AdvancedA) System.Windows.ReflectionB) System.ReflectionC) System.Features.Reflection
-
We can call COM objects in C# using :
Skill/Topic: AdvancedA) DLLImportB) UsingDLLC) DLLCall
-
Does C# support multiple inheritance?
No, use interfaces instead.
-
You can derive your own classes from the base class Library
Skill/Topic: IntermediateA) TrueB) False
-
Manifest is an area where:
Skill/Topic: AdvancedA) the assembly code is compiledB) Debug information is a storedC) Assembly metadata is stored
-
A virtual method can’t be over ridden
Skill/Topic: IntermediateA) TrueB) False
-
'Reflection' is used to
Skill/Topic: AdvancedA) Get assembly metadata using codeB) Debug C# programsC) Compile C# programs
-
The following type of class can’t be instantiated
Skill/Topic: IntermediateA) absoluteB) abstractC) superD) none of the above
-
System is a
Skill/Topic: IntermediateA) ClassB) NamespaceC) Program
-
To start a Thread, you call the following method
Skill/Topic: IntermediateA) Start()B) Begin()C) Jump()
-
What is an assembly?
Skill/Topic: IntermediateA) A logical unit containing complited codeB) A collection of C# compilersC) .NET debugger
-
The methods which can be called without instantiating an object first are called
Skill/Topic: IntermediateA) staticB) dynamicC) primary
-
From command line, a C# program can be compiled using
Skill/Topic: BeginnerA) csc.exeB) csharp.exeC) compilescs.exe
C# Interview Questions
Ans