Home / Programming Questions / Ruby MCQs / Page 13
Dear candidates you will find MCQ questions of Ruby here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
Y
Q. What will be the output of the given ruby code?
arr = [1, 2, 3, 4] print arr
Y
Q. What will be the output of the given ruby code?
array = [100, 200, 300, 400, 500] print array[4]
Y
Q. What will be the output of the given ruby code?
string_array = [a,e,i,o,u] print string_array
Y
Q. What will be the output of the given ruby code?
string_array = [a,e,i,o,u] print string_array[3]
Y
Q. What will be the output of the given ruby code?
arr = [[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]] print arr
Y
Q. What is the output of the given ruby code?
a=[[a,b]] b=[[e,a]] print a + b
Y
Q. What is the output of the given ruby code?
array = [100, 200, 300, 400, 500] print array[5]
Y
Q. What will be the output of the given ruby code?
a=[1,2,3,4,5] b=[1,2,4,6,8] if a[3]==b[2] print Equal end
Don't have account? Register here.