Arrays And Strings In C Sharp - Study Mode

[#1] Which of these access specifiers must be used for main() method?
Correct Answer

(A) private

[#2] Which of these methods of the class String is used to obtain length of String object?
Correct Answer

(D) length()

[#3] Which of these data type values is returned by equals() method of String class?
Correct Answer

(C) boolean

[#4] Correct way to convert a string to uppercase using string class method()?
Correct Answer

(C) Object.ToUpper()

[#5] Which of the following statements is true regarding arrays in C#?
Correct Answer

(B) The length of an array cannot be changed