Home / Programming MCQs / Ruby MCQs / Question
M
Q. What does the truncate method do in Ruby file I/O?
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Which of the following is a Reserved Words in Ruby?
What is the output of the given ruby code?
What is the data type of the value true in Ruby?
Which method is used to find the first occurrence of a pattern in a string in Ruby?
Which of the following is a correct way to define a class method in Ruby?
What does the zone method return for a Time object in Ruby?
Which statement will execute at the end of the code, whether the exception raise or not?
In Ruby, what is the correct way to define a constant?
What will be the output of the given code? "Come let's learn.reverse Ruby.length language".upcase
Discusssion
Login to discuss.