C# in Random level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. Which of the following statements is true?
2. What will be the output of the following program? class Program { static void Main(string[] args) { double i;
3. Which of the following C# keywords has nothing to do with multithreading?
4. Find a correct statement about C# exception
5. How do you start writing a while loop in C#?
6. String is ______.
7. Which of the following is the default access modifier in a namespace?
8. Which of the following is NOT allowed in C# as an access modifier?
9. Which data type is used to create a variable that should store text?
10. In C#, it is possible to inherit fields and methods from one class to another.
11. What is boxing in C#?
12. A constructor in a class can have a return type.
13. Which of the following datatype can be used with enum?
14. Which of the following access specifier in C# allows a class to expose its member variables and member
15. Can you change the value of a variable while debugging a C# application?
16. Return type of Predicate<T>() is always a ______.
17. Which common design pattern is shown below? public class A { private A instance; private
18. Dynamic polymorphism is implemented by abstract classes and virtual functions.
19. Which of the following are value types in C#?
20. The partial class allows ________.
Next
Previous