-
-
It is not possible to debug the classes written in other .Net languages in a C# project.
A) TrueB) FalseExplanation: It is possible to debug the code as all are adhering to CTS & CLS
-
Which of the following application need not to have an entry point
A) Console applicationB) Windows applicationC) Class ModulesExplanation: Class modules are referred by another project which will have entry point.
-
-
How do you refer parent classes in C#
A) SuperB) ThisC) Base
-
What happens when a C# project has more than 1 Main methods
A) Compiler throws warning messageB) Compiler throws Error messageC) Compiler successfully compiles
-
Public policy applies to
A) Shared assembliesB) Private assembliesC) Both
-
-
Which of the following has stream as the base class
A) Buffered StreamB) MemoryStreamC) FileStream
-
Applications running in different App Domains can't communicate with each other:
Skill/Topic: AdvancedA) TrueB) FalseExplanation: The can communicate
-
-
Even if an exception hasn’t occurred, the ‘finally’ block will get executed
Skill/Topic: IntermediateA) YesB) NoExplanation: Finally block is always executed
-
-
What does Main method returns in C#
A) StringB) IntegerC) FloatExplanation: Main returns either Nothing or int
-
-
The following namespace is used for globalization:
Skill/Topic: AdvancedA) System.GlobalizationB) System.LocalizationC) System.Locale
-
-
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
-
Which of these .NET languages has been specefically designed to be used with .NET?
Skill/Topic: IntermediateA) Visual C++ .NETB) C#C) VB.NET
-
Assemblies are of the following types:
Skill/Topic: AdvancedA) SsharedB) PrivateC) Friendly
C# Interview Questions
Ans