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 code? var greet = "Hello "; var name = "CShap"; Console.WriteLine($"{greet} {name}");
3. The partial class allows ________.
4. Does .NET support the ability to inherit multiple interfaces?
5. Find a correct statement about C# exception
6. Events can also be declared static, virtual, sealed, and abstract.
7. Func and Action are the types of ______.
8. What is the output of this C# code? int? i = 8 >> 5; int? j = i > 0
9. Will the finally block get executed if an exception has not occurred?
10. Which of the following datatype can be used with enum?
11. How do you create a variable with the floating number 1.80?
12. Which of the following operator represents a conditional operation in C#?
13. Which datatype should be more preferred for storing a simple number like 30 to improve execution speed of a
14. Which operator can be used to compare two values?
15. Which access modifier makes the code only accessible within the same class?
16. Which of the following C# keywords has nothing to do with multithreading?
17. If a method is marked as protected internal, who can access it?
18. Which of the following data types can include maximum positive or negative, integer or float value?
19. Which of the following is correct about static member variables of a class?
20. Which of the following is NOT allowed in C# as an access modifier?
Next
Previous