C# in Random level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. Which .NET collection class allows elements to be accessed using a unique key?
2. Which of the following operator can be used to access the member function of a class?
3. Can multiple catch blocks be executed for a single try statement.
4. Does C# support multiple inheritances?
5. Which datatype should be more preferred for storing a simple number like 30 to improve execution speed of a
6. How do you call a method in C#?
7. The C# keyword "int" maps to which .NET type?
8. How do you start writing an if statement in C#?
9. In C#, it is possible to inherit fields and methods from one class to another.
10. What will be the output of the following program? int i = 0; for(;;) { if (i < 5)
11. Return type of Predicate<T>() is always a ______.
12. What is the correct way to create an object called myObj of MyClass?
13. Which of the following is true for ReadOnly variables?
14. All arrays start with _____ index.
15. Which of the following access specifier in C# allows a class to expose its member variables and member
16. Which of the following data types can include maximum positive or negative, integer or float value?
17. Which of the following statement(s) are TRUE?
18. Which of the following is the correct way of declaring an array in C#?
19. To declare an array in C#, define the variable type with:
20. What is the top .NET class that everything is derived from?
Next
Previous