Discussion :: Ruby Programming MCQs
-
What is the output of the given code? string_array = ["a","e","i","o","u"]boolean_array = ["True","False"]puts string_array[3]puts boolean_array
Answer : Option C
Explanation :
The array is a string array and the index is 3 so 'o' will be the output and then the boolean_array will get printed. Output: o True False
Be The First To Comment