.NET - .NET Framework
21.
Mention the execution process for managed code.
A piece of managed code is executed as follows:
- Choosing a language compiler
- Compiling the code to MSIL
- Compiling MSIL to native code
- Executing the code.
22.
Is there a way to suppress the finalize process inside the garbage collector forcibly in .NET?
Use the GC.SuppressFinalize() method to suppress the finalize process inside the garbage collector forcibly in .NET.
23.
How can you instantiate a tuple?
The following are two ways to instantiate a tuple:
- Using the new operator. For example,
Tuple<String, int> t = new Tuple<String, int> ("Hellow", 2);
- Using the Create factory method available in the Tuple class. For
example,
Tuple<int, int, int> t = Tuple.Create<int, int, int> (2, 4, 5);
24.
Which is the root namespace for fundamental types in .NET Framework?
System.Object is the root namespace for fundamental types in .NET Framework.
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers