Home / Programming MCQs / Ruby MCQs / Question
M
Q. Which modifier is used to perform case-insensitive matching in Ruby regular expressions?
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Which method is used to check if a file is executable in Ruby?
Which assertion method is commonly used in RSpec for testing equality of values?
Which keyword is used to define a block in Ruby?
What is the purpose of the gemfile.lock file in Ruby projects?
What is the purpose of the attr_accessor method in Ruby classes?
Which Ruby convention is commonly used for naming classes and modules?
What will be the output of the following? array = [100, 200, 300, 400, 500] print array[4]
Discusssion
Login to discuss.