πŸ“Š Ruby
Q. In ruby, User can access the string elements by using the__________?
  • (A) {}
  • (B) []
  • (C) ()
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) []

Explanation: User can access the string elements by using the square brackets []. In square brackets [], the user can pass the strings, ranges or indexes.

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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
146
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Vinay Kumar
Publisher
πŸ“ˆ
81%
Success Rate