C# in Easy level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. How do you create a variable with the number value 10?
2. How do you create a variable with the floating number 1.80?
3. C# is an alias of C++
4. Which of the following keyword is used to declare a variable whose type will be automatically determined by
5. Which of the following access specifier in C# allows a class to expose its member variables and member
6. Type casting is when you assign a value of one data type to another type.
7. Which of the following gives the correct count of the constructors that a class can define?
8. How do you insert COMMENTS in C# code?
9. Which access modifier makes the code only accessible within the same class?
10. What will be the output of the following code? SortedList sortedList = new SortedList()
11. Which of the following is the correct way to initialize an array?
12. What is the correct syntax to output "Hello World" in C#(console application)?
13. Will the finally block get executed if an exception has not occurred?
14. Which of the following is the default access modifier in a namespace?
15. The partial class allows ________.
16. Which .NET collection class allows elements to be accessed using a unique key?
17. Does .NET support the ability to inherit multiple interfaces?
18. How do you call a method in C#?
19. Which of the following operator represents a conditional operation in C#?
20. How do you start writing an if statement in C#?
Next
Previous