Menu
Popular Courses
Search
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

Share this page with your friends!

Latest Videos

Chapter 1 - GLOBAL STEEL SCENARIO & INDI Part 1 : (13-04-2024) ICA 2024
Chapter 1 - RMHP / OHP / OB & BP Part 1 : (14-02-2024) GPOE 2024
Cube & Cuboid Part 1 Reasoning (Hindi)
Data Interpretation (DI) Part1 Basic Concepts Reasoning (Hindi)
Counting Figures Part 1 Counting Of Straight Lines Reasoning (Hindi)
Direction Sense Test Part 1 Reasoning (Hindi)
Real Numbers Part 7 Class 10 Maths

Latest Test Papers

Test paper 1 Reasoning & DI
Chapter 3.1 : INTRODUCTION GPOE/GPA 2024
Chapter 1.1 : INTRODUCTION GPOE/GPA 2024
Chapter 2.3 : COAL HANDLING PLANT - Set 1 GPOE/GPA 2024
Chapter 1.1 : Personnel Functions- An overview GFM 2024