Home / Programming MCQs / Ruby MCQs / Question
M
Q. What is the output of the given code? a = 5 b=10 while a <10 && b<20 puts a*b a+=2 b+=2 end
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
String may consists of ..........
Which Ruby convention is commonly used for naming private methods?
What is the keyword used to define a conditional statement in Ruby?
What does polymorphism allow in Ruby?
How do you access class variables in Ruby?
The given two expression means the same. counter=counter+1 and counter++
What is the purpose of the Enumerable#reduce method in Ruby?
Which method is used to define getter and setter methods for instance variables in Ruby?
Discusssion
Login to discuss.