Arrays And Strings In C Sharp - Study Mode

[#46] In C#, what is the correct way to access the length of a string named text?
Correct Answer

(D) text.Length

[#47] What does the IndexOf() method return if the specified value is not found in an array in C#?
Correct Answer

(D) -1

[#48] What is the purpose of the Reverse() method when applied to an array in C#?
Correct Answer

(C) Reverses the order of elements in the array

[#49] In C#, what method is used to convert a string to an array of characters?
Correct Answer

(D) ToCharArray()

[#50] The Method use to remove white space from a string?
Correct Answer

(C) Trim()