C# in Random level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. How do you create a variable with the number value 10?
2. Correct Declaration of Values to variables a and b ?
3. Which of the following statement(s) are TRUE?
4. What will be the output of the following code? int i = 5, j; Console.WriteLine(j=i*2);
5. Which operator is used to multiply numbers?
6. What is the correct syntax to output "Hello World" in C#(console application)?
7. What will be the output of the following program? int i = 0; for(;;) { if (i < 5)
8. What is the nullable type in C#?
9. The value of a string variable can be surrounded by single quotes.
10. Struct is a _____.
11. Which of the following is correct about static member variables of a class?
12. Which .NET collection class allows elements to be accessed using a unique key?
13. Which of the following is the correct way to initialize an array?
14. Will the finally block get executed if an exception has not occurred?
15. Which of the following are value types in C#?
16. What will be the output of the following program? public static void Main(string[] args) { int a = 1,
17. Which access modifier makes the code only accessible within the same class?
18. How do you create a variable with the floating number 1.80?
19. Which of the following is true for ReadOnly variables?
20. Which of the following keyword is used to declare a variable whose type will be automatically determined by
Next
Previous