Home / Programming MCQs / Ruby MCQs / Question
M
Q. What does the << operator do when used with a string in Ruby?
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
What is the purpose of the attr_accessor method in Ruby classes?
Which keyword is used to define a class in Ruby?
What is the main purpose of using inheritance in Ruby?
Default value of class variables is?
What is the output of the given code? a=5 b=15 while a&&b puts a+b end
Which Ruby convention is commonly used for naming constants?
What will be the output of the given code?
What is the purpose of a mock object in Ruby testing?
What is the method used to inherit from a superclass in Ruby?
Discusssion
Login to discuss.