Home / Programming MCQs / Ruby MCQs / Question
V
Q. equal? Operator is used for?
equal? return True if the receiver and argument have the same object id.
You must be Logged in to update hint/solution
What does the binmode method do in Ruby file I/O?
It is possible to make array of booleans.
What does the unless keyword do in Ruby?
What does the term "polymorphism" mean in the context of Ruby programming?
What does the File.exist? method in Ruby return if the specified file exists?
What is the main advantage of using encapsulation in Ruby?
In Ruby, what is the default file extension for Ruby files?
What is the purpose of the retry keyword in Ruby?
What is the result of the expression 5 > 3 ? "Yes" : "No" in Ruby?
Discusssion
Login to discuss.