Home / Programming MCQs / Ruby MCQs / Question
M
Q. What is the purpose of the String#<< method in Ruby?
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Which metacharacter is used to specify the beginning of a line in a regular expression in Ruby?
Which of the following statement is not a feature of ruby?
What is the output of the given code? a=5 b=15 while b>a puts a*(b-a) while a>b a+=1 b-=1 end end
What will be the output of the following? array = [100, 200, 300, 400, 500] print "array[5]"
What does the start_of_week method do for a Date object in Ruby?
Which keyword is used to create a new instance of a class in Ruby?
Which method is used to find the length of an array in Ruby?
The given two expression means the same. counter=counter+1 and counter++
What is the purpose of the detect method in Ruby enumerators?
What does the at_beginning_of_day method do for a DateTime object in Ruby?
Discusssion
Login to discuss.