C# in Random level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. Which of the following statements is true?
2. Which of the following is correct about params in C#?
3. The members of the enum are always public, and no access modifiers can be applied.
4. How do you create a method in C#?
5. Which of the following statements is true?
6. Which of these statements correctly declares a two-dimensional integer array in C#?
7. Which keyword is used to return a value inside a method?
8. Find a correct statement about C# exception
9. The partial class allows ________.
10. Does .NET support the ability to inherit multiple interfaces?
11. What will be the output of the following program? int i = 0; for(;;) { if (i < 5)
12. What will be the output of the following program? class Program { static void Main(string[] args) { double i;
13. What will be the output of the following program? static void Main(string[] args) { string str1, str2; str1 = "Cshap";
14. How many Bytes are stored by Decimal Datatype in C# .net?
15. Which of the following datatype can be used with enum?
16. How do you insert COMMENTS in C# code?
17. To declare an array in C#, define the variable type with:
18. Which of the following gives the correct count of the constructors that a class can define?
19. Can a sealed class is a base class?
20. A constructor in a class can have a return type.
Next
Previous