C# in Easy level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. Which operator is used to multiply numbers?
2. What will be the output of the following code? var greet = "Hello "; var name = "CShap"; Console.WriteLine($"{greet} {name}");
3. What is faster, class or struct?
4. What will be the output of the following program? static void Main(string[] args) { string str1, str2; str1 = "Cshap";
5. Which of the following is NOT allowed in C# as an access modifier?
6. Which of the following is correct about C# ?
7. LINQ stands for ________.
8. Which keyword is used to create a class in C#?
9. Which property can be used to find the length of a string?
10. The C# keyword "int" maps to which .NET type?
11. How do you create a variable with the number value 10?
12. How do you create a method in C#?
13. Which of the following keyword is used to declare a variable whose type will be automatically determined by
14. Which access modifier makes the code only accessible within the same class?
15. Which of the following is the default access modifier in a namespace?
16. How do you create a variable with the floating number 1.80?
17. Arrange the following datatype in order of increasing magnitude sbyte, short, long, int.
18. Which of the following is correct about static member variables of a class?
19. All arrays start with _____ index.
20. What is the correct way to create an object called myObj of MyClass?
Next
Previous