C# in Easy level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. What will be the output of the following program? public static void Main(string[] args) { int a = 1,
2. Will the finally block get executed if an exception has not occurred?
3. Which keyword is used to create a class in C#?
4. Can you change the value of a variable while debugging a C# application?
5. How do you create a variable with the number value 10?
6. What will be the output of the following program? static void Main(string[] args) { string str1, str2; str1 = "Cshap";
7. Dynamic polymorphism is implemented by abstract classes and virtual functions.
8. Which of the following is correct about C# ?
9. Which of the following is a reference type in C#
10. Func and Action are the types of ______.
11. How do you start writing a while loop in C#?
12. C# is an alias of C++
13. Struct is a _____.
14. Which of the following are value types in C#?
15. Which keyword is used to return a value inside a method?
16. How do you insert COMMENTS in C# code?
17. What will be the output of the following code? var greet = "Hello "; var name = "CShap"; Console.WriteLine($"{greet} {name}");
18. Correct Declaration of Values to variables a and b ?
19. Which operator is used to multiply numbers?
20. What is the correct way to create an object called myObj of MyClass?
Next
Previous