Home / Programming MCQs / Ruby MCQs / Question
M
Q. Which keyword is used to create a new instance of a class 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 gem owner gem_name command in Ruby?
Which method is used to find the number of weeks between two Date objects in Ruby?
Which keyword is used to refer to the current instance of a class in Ruby?
What is the output of the given code? i=1 for i in 5..10 puts i^2 end
What is the purpose of the next keyword in a loop in Ruby?
What is the method used to inherit from a superclass in Ruby?
What is the keyword used to define a conditional statement in Ruby?
What will be the output of the given ruby code?
What is the method used to define instance variables in Ruby?
Discusssion
Login to discuss.