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[1]
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[1] = false will get printed. Output: o False
Be The First To Comment