Sail E0 Webinar
Question
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]
Options:
A .  [a","e","i","o","u"]
B .  Error
C .  o False
D .  None of the mentioned
Answer: Option C


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



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers