Home / Programming MCQs / Ruby MCQs / Question

V

Vinay Kumar • 8.55K Points
Tutor III

Q. In ruby, User can access the string elements by using the__________?

(A) {}
(B) []
(C) ()
(D) All of the above
Explanation by: Vinay Kumar
User can access the string elements by using the square brackets []. In square brackets [], the user can pass the strings, ranges or indexes.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.