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