πŸ“Š Ruby
Q. What will be the output of the given ruby code?
Code:
string_array = [a,e,i,o,u]
print string_array[3]
  • (A) ["a","e","i","o","u"]
  • (B) e
  • (C) i
  • (D) o
πŸ’¬ Discuss
βœ… Correct Answer: (D) o

Explanation: The array is a string array and the index is 3 so 'o' will be the output.

Explanation by: Yami Thakur
The array is a string array and the index is 3 so 'o' will be the output.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
214
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Yami Thakur
Publisher
πŸ“ˆ
99%
Success Rate