Home / Programming MCQs / Ruby MCQs / Question
M
Q. What is the output of the given code? a="hungry" until !a puts "hungry" a=!a end
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
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
Which testing framework is included in the Ruby standard library?
How do you open a file in Ruby in write mode, creating it if it does not exist?
Which of the following statement is not a feature of ruby?
Which keyword is used to call a method on an object in Ruby?
What is the purpose of the initialize method in Ruby?
What is the method used to define a class variable in Ruby?
In Ruby, what is the keyword used to define a loop that repeats until a condition is true?
Discusssion
Login to discuss.