Home / Programming MCQs / Ruby MCQs / Question
Y
Q. What will be output for the following code?
begin puts 'no Exception raise' rescue puts 'Finally Saved!' else puts 'Else block execute because of no exception raise' ensure puts 'ensure block execute' end
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Q. Which of the following methods is used to merge two hashes together in Ruby?
Q. What does the yield keyword do in Ruby?
Q. What is inheritance in Ruby?
Q. What is the purpose of the instance_eval method in Ruby?
Q. Which of the following is a Reserved Words in Ruby?
Q. What is the purpose of the strptime method in Ruby?
Q. Which modifier is used to perform case-insensitive matching in Ruby regular expressions?
Q. Which method in Ruby is used to check if a key exists in a hash?
Q. What is the purpose of a feature file in Cucumber testing?
Discusssion
Login to discuss.