C#.Net Test

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 ***]

}

}



























































Description:

Each of the questions given below consists of a question followed by three statements. You have to study the question and the statements and decide which of the statement(s) is/are necessary to answer the question.

Tags:

C#.net

Comments

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no:


Area code Number
Subjects you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
6 Followers
Tests: 3

Your Facebook Friends on WizIQ

More Tests By Author

SQL Server
30 Questions | 1023 Attempts

C#.Net
20 Questions | 431 Attempts

Give live classes, create & sell online courses

Try it free Plans & Pricing

Connect