Which of the following statements are TRUE about the .NET CLR?
1) It provides a language-neutral development & execution environment.
2) It ensures that an application would not be able to access memory that it is not authorized to access.
3) It provides services to run "managed" applications.
4) The resources are garbage collected.
5) It provides services to run "unmanaged" applications.
Which of the following are valid .NET CLR JIT performance counters?
1)Total memory used for JIT compilation
2)Average memory used for JIT compilation
3)Number of methods that failed to compile with the standard JIT
4)Percentage of processor time spent performing JIT compilation
5)Percentage of memory currently dedicated for JIT compilatio
Which of the following statements are correct about data types?
1)If the integer literal exceeds the range of byte, a compilation error will occur.
2) We cannot implicitly convert non-literal numeric types of larger storage size to byte.
3)Byte cannot be implicitly converted to float.
4)A char can be implicitly converted to only int data type.
5)We can cast the integral character codes.
Which of the following statements are correct about static functions?
1) Static functions can access only static data.
2)Static functions cannot call instance functions.
3)It is necessary to initialize static data.
4)Instance functions can call static functions and access static data.
5)this reference is passed to static functions.
Which of the following can be facilitated by the Inheritance mechanism?
1)Use the existing functionality of base class.
2)Overrride the existing functionality of base class.
3)Implement new functionality in the derived class.
4)Implement polymorphic behaviour.
5)Implement containership.
Which of the following statements should be added to the subroutine fun( ) if the C#.NET code snippet given below is to output 9 13?
class BaseClass
{
protected int i = 13;
}
class Derived: BaseClass
{
int i = 9;
public void fun()
{
// [*** Add statement here ***]
}
}