-
We declare an integer variable 'x' in C# as
Skill/Topic: BeginnerA) x integer;B) integer x;C) int x;
-
To read user input from the console, the following statement is used
Skill/Topic: BeginnerA) Console.ReadLine();B) Console.Input()C) System.GetuserRequest();
-
-
-
The following method is used to force the garbage collector :
Skill/Topic: AdvancedA) Garbage.CollectB) System.GC.Collect()C) Gc.Clea.Up()
-
Each process in a 32 bit Windows environment has the following amount of virtual memory available:
Skill/Topic: AdvancedA) 4 MBB) 400MBC) 4 GB
-
-
What Datatypes does the RangeValidator Control support?
Integer.String and Date
-
-
What is an abstract class?
A class that cannot be instantiated. A concept in C++ known as pure virtual method. A class that must be inherited and have the methods over-ridden. Essentially, it is a blueprint for a class without any implementation.
-
-
-
How do you determine the size required by a Value type on the stack
A) Length operatorB) Sizeof operatorC) Mem operator
-
Assemblies are of the following types:
Skill/Topic: AdvancedA) SsharedB) PrivateC) Friendly
-
Which of these .NET languages has been specefically designed to be used with .NET?
Skill/Topic: IntermediateA) Visual C++ .NETB) C#C) VB.NET
-
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
-
-
The following namespace is used for globalization:
Skill/Topic: AdvancedA) System.GlobalizationB) System.LocalizationC) System.Locale
-
-
What does Main method returns in C#
A) StringB) IntegerC) FloatExplanation: Main returns either Nothing or int
C# Interview Questions
Ans