-
The following is the namespace used for Reflection:
Skill/Topic: AdvancedA) System.Windows.ReflectionB) System.ReflectionC) System.Features.Reflection
-
We inherit a class using the following syntax:
Skill/Topic: AdvancedA) class DerivedClass: BaseClass{ }B) class DerivedClass:: BaseClass{ }C) class BaseClass :DerivedClass { }
-
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..
-
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.
-
How do you deploy an assembly?
Skill/Topic: AdvancedA) Using MSI installerB) using a CAB archiveC) using XCOPYD) All of the above
-
What is IL?
Skill/Topic: BeginnerA) Interchangeable LibraryB) Interoperable LanguagesC) Intermediate LanguageD) Interchangeable languages
-
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
-
Which is the first level of compilation in the .NET languages?
Skill/Topic: BeginnerA) CLRB) ILC) Platform-specific codeExplanation: Intermediate Language
-
The C# code files have an extension
Skill/Topic: BeginnerA) .csharpB) .csC) #
-
A code block in C# is enclosed between
Skill/Topic: BeginnerA) < >B) [ ]C) { }
-
There must be at least the following function in a C# program
Skill/Topic: BeginnerA) main()B) Main()C) Enter()
-
All the C# programs must have the following statement
Skill/Topic: BeginnerA) using DotNetB) using SystemC) include System
-
-
What's the implicit name of the parameter that gets passed into the class' set method?
Value, and its datatype depends on whatever variable we're changing.
-
What's the top .NET class that everything is derived from?
System.Object.
-
Is XML case-sensitive?
Yes, so and are different elements.
-
How's method overriding different from overloading?
When overriding, you change the method behavior for a derived class. Overloading simply involves having a method with the same name within the class.
-
What is the top .NET class that everything is derived from?
System.Object.
-
What is an interface class?
It is an abstract class with public abstract methods all of which must be implemented in the inherited classes.
-
Why cannot you specify the accessibility modifier for methods inside the interface?
They all must be public. Therefore, to prevent you from getting the false impression that you have any freedom of choice, you are not allowed to specify any accessibility, it is public by default.
C# Interview Questions
Ans