C# in Easy level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. Which datatype should be more preferred for storing a simple number like 30 to improve execution speed of a
2. Which of the following methods is an entry point in the C# console program?
3. Which .NET collection class allows elements to be accessed using a unique key?
4. What is the correct syntax to output "Hello World" in C#(console application)?
5. How do you create a variable with the floating number 1.80?
6. What will be the output of the following program? public static void Main() { int[] arr = {1, 2, 3,
7. How do you call a method in C#?
8. C# is an alias of C++
9. A constructor in a class can have a return type.
10. What is faster, class or struct?
11. What will be the output of the following code? int i = 5, j; Console.WriteLine(j=i*2);
12. What will be the output of the following program? public static void Main(string[] args) { int a = 1,
13. Which of these statements correctly declares a two-dimensional integer array in C#?
14. To declare an array in C#, define the variable type with:
15. Which of the following keyword is used to declare a variable whose type will be automatically determined by
16. Does .NET support the ability to inherit multiple interfaces?
17. How many Bytes are stored by Long Datatype in C# .net ?
18. Which of the following is NOT allowed in C# as an access modifier?
19. Which of the following access specifier in C# allows a class to expose its member variables and member
20. Which property can be used to find the length of a string?
Next
Previous