C SHARP interview questions part 12

C SHARP interview questions part 12

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. Which of following statements are correct in nature?

Correct Answer is : Code runs successfully prints required output

2. Arrange the following overloaded operators in increasing order of precedence? %, <<, &, /, +

Correct Answer is : Code runs successfully prints required output

3. Operators that can be overloaded are?

Correct Answer is : System.Net.Mail

4. Which statements are correct about operator overloading?

Correct Answer is : All of the mentioned

5. Correct way to define operator method or to perform operator overloading is?

Correct Answer is : IAuthenticationModule

6. Correct method to define + operator is?

Correct Answer is : HttpWebRequest

7. Choose the wrong statement about the properties used in C#.NET?

Correct Answer is : WebClient

8. Choose the statements which makes use of essential properties rather than making data member public in C#.NET?

Correct Answer is : 1024

9. Where the properties can be declared?

Correct Answer is : 32

10. Select the modifiers which can be used with the properties?

Correct Answer is : Domain Name Service

11. Choose the correct statements about write-only properties in C#.NET?

Correct Answer is : InetAddress

12. Consider a class maths and we had a property called as sum.b is a reference to a maths object and we want the statement b.sum = 10 to fail.Which of the following is the correct solution to ensure this functionality?

Correct Answer is : All of the mentioned

13. Consider a class maths and we had a property called as sum.b which is the reference to a maths object and we want the statement Console.WriteLine(b.sum)to fail.Which among the following is the correct solution to ensure this functionality?

Correct Answer is : sample.fun(1, 5) will not work correctly

14. Consider a class maths and we had a property called as sum.b is a reference to a maths object and we want the code below to work.Which is the correct solution to ensure this functionality? b.maths = 10; Console.WriteLine(b.maths);

Correct Answer is : ::

15. If math class had add property with get and set accessors, then which of the following statements will work correctly?

Correct Answer is : .

16. If the math class had add property with get accessors then which of the following statements will work correctly?

Correct Answer is : type & scope

17. Which feature enables to obtain information about the use and capabilities of types at runtime?

Correct Answer is : 45293

18. Choose the namespace which consists of classes that are part of .NET Reflection API:

Correct Answer is : All of the mentioned

19. Choose the correct statement about System.Type namespace:

Correct Answer is : Encapsulation

20. Choose the class from which the namespace ‘System.Type’ is derived:

Correct Answer is : 45585

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon