C# in Random level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. What is the correct way to create an object called myObj of MyClass?
2. Which data type is used to create a variable that should store text?
3. Can you change the value of a variable while debugging a C# application?
4. Does .NET support the ability to inherit multiple interfaces?
5. The value of a string variable can be surrounded by single quotes.
6. What will be the output of the following code? SortedList sortedList = new SortedList()
7. C# is an alias of C++
8. Which of the following is true for ReadOnly variables?
9. Which of the following is correct about params in C#?
10. Which of these statements correctly declares a two-dimensional integer array in C#?
11. Return type of Predicate<T>() is always a ______.
12. What will be the output of the following program? public static void Main(string[] args) { int a = 1,
13. What will be the output of the following program? int i = 0; for(;;) { if (i < 5)
14. Which of the following converts a type to a single Unicode character, where possible in C#?
15. Find a correct statement about C# exception
16. String is ______.
17. How do you create a method in C#?
18. Will the finally block get executed if an exception has not occurred?
19. What will be the output of the following program? class Program { static void Main(string[] args) { double i;
20. Which of the following datatype can be used with enum?
Next
Previous