Home / Programming Questions / Ruby MCQs / Page 11
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
V
Q. String is a sequence of _________ characters.
V
Q. String may consists of ..........
V
Q. String are
V
Q. Double quotes and single quotes will interpolates ?
V
Q. What will be output for the following code?
str1 = "LFC" puts 'str1: #{str1}'
V
Q. what will be output for the following code?
str1 = LFC puts "str1: #{str1}"
V
Q. In ruby, User can access the string elements by using the__________?
Y
Q. Ruby arrays are ____________
Don't have account? Register here.