M
Q. What is the output of the given code? a=["hey", "ruby", "language"] b=[1, 2, 3] puts b[1] puts a[2]
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Q. What does the private keyword do in Ruby?
Q. What does the super keyword do in a Ruby class method?
Q. What is inheritance in Ruby?
Q. What is the purpose of the Object#tap method in Ruby?
Q. Which keyword is used to define an instance method in Ruby?
Q. 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
Q. What does the __FILE__ constant represent in Ruby?
Q. Which of the following is used to define a class method in Ruby?
Discusssion
Login to discuss.