Home / Programming MCQs / Ruby MCQs / Question
M
Q. What is the default file extension for Ruby files?
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
What does the yield keyword do in Ruby?
What does the `chomp` method do when used with strings in Ruby?
Which of the following is a valid variable name in Ruby?
Which method is used to split a string into substrings based on a regular expression in Ruby?
The given two expression means the same. counter=counter+1 and counter++
What is the purpose of the attr_accessor method in Ruby classes?
What does the break keyword do in a loop in Ruby?
Which of the method is used to returns the contents of the file line by line?
Discusssion
Login to discuss.