C SHARP interview questions part 1

C SHARP interview questions part 1

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

Total Questions: 20

1. Private Button print = new button();

Correct Answer is : a and c

2. The proper way to convert a string to all lowercase is:

Correct Answer is : string.ToLower();

3. Which of the following can't be used in our .NET application?

Correct Answer is : All of the above can be used

4. How to kill a user session explicitly?

Correct Answer is : Session.Abandon()

5. Which of the following .NET datatype allows the retrieval of data by a unique key?

Correct Answer is : HashTable

6. Which function is used to check whether value given is NULL or not NULL in sql server.

Correct Answer is : ISNULL

7. Select invalid type of Trigger?

Correct Answer is : Select

8. Which statement are used to combine the tables including the duplicate rows.

Correct Answer is : UNION

9. Select invalid authentication mode in SQL Server?

Correct Answer is : DOS Mode

10. Which character can be used to store Unicode characters for multiple languages.

Correct Answer is : nvarhcar

11. Name a method which has the same name as that of class and which is used to destroy objects also called automatically when application is finally on process of being getting terminated.

Correct Answer is : Abstract class

12. Operator used to free the memory when memory is allocated ?

Correct Answer is : Abstract

13. Select wrong statement about destructor in C#?

Correct Answer is : All of the mentioned

14. What is the return type of destructor ?

Correct Answer is : 45294

15. Correct syntax for do while loop is :

Correct Answer is : Encapsulation

16. Choose the correct statements about enum used in C#.NET?

Correct Answer is : 45482

17. Choose the correct statement about the C#.NET code given below? enum color:byte{ yellow = 500, green = 1000, pink = 1300}

Correct Answer is : public

18. Wrong statement about enum used in C#.NET is?

Correct Answer is : private members of class can be inherited by a subclass, and become protected members in subclass

19. Choose the correct output for given set of code? enum per { a, b, c, d, } per.a = 10; Console.writeline(per.b);

Correct Answer is : 20, 10

20. Choose the correct output for given set of code? enum color:int{ red, green, blue = 5, cyan, pink = 10, brown}console.writeline((int)color.green);console.writeline((int)color.brown);

Correct Answer is : public, private, protected, internal, protected internal

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon