C# Test 1

More C# Tests

Question 1: Which of the following methods is an entry point in the C# console program?

Question 2: Which of the followings are value types in C#?

Question 3: Which of the following is a reference type in C#?

Question 4: What is the nullable type in C#?

Question 5: Struct is a _____.

Question 6: 10 > 9 ? "10 is greater than 9" : "9 is greater than 10" is an example of _______

Question 7: Which of the following datatype can be used with enum?

Question 8: What is an indexer?

Question 9: String is ______.

Question 10: All arrays start with _____ index.

Question 11: Which of the following is the correct way of declaring an array in C#?

Question 12: Which of the following is true for ReadOnly variables?

Question 13: Which of the following statements is true?

Question 14: Which of the following statements is true?

Question 15: Func and Action are the types of ______.

Question 16: Return type of Predicate<T>() is always a ______.

Question 17: The partial class allows ________

Question 18: LINQ stands for ________.

Question 19: Data type of a variable declared using var will be assigned at _______.

Question 20: Which of the following statements is true?