C# Test 1

C# Test 1

Question 6 to Question 10

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

A. Ternary operator

B. Conditional operator

C. Greater than operator

D. Inverse operator

Answer: A

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

A. int

B. string

C. boolean

D. All of the above

Answer: A

Question 8: What is an indexer?

A. It allows an instance of class of a class to be indexed like an array

B. It allows enumerator with class

C. It creates index for instances of a class

D. None of the above

Answer: A

Question 9: String is _____?

A. Mutable

B. Immutable

C. Static

D. Value type

Answer: B

Question 10: All array start with _____ index?

A. 1

B. 0

C. -1

D. 0.0

Answer: B

To view or add a comment, sign in

More articles by Đặng Văn Trí

  • C# Test 1

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

Insights from the community

Others also viewed

Explore topics