Home / Programming MCQs / Ruby MCQs / Question
M
Q. What does the 'gets' method do in Ruby?
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Q. What is the size of an integer data type in ruby?
Q. What is the main advantage of using encapsulation in Object-Oriented Programming?
Q. Which of the following is not a type of loop in ruby?
Q. What is the purpose of the gemfile.lock file in Ruby projects?
Q. Which method in Ruby is used to convert an object to a JSON string?
Q. What will be the output of the given code?
Q. What is the output of the given code? i = 0 while i < 5 puts i i=(i+1)**2 end
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
Discusssion
Login to discuss.