Home / Programming MCQs / Ruby MCQs / Question
M
Q. Which of the following is true about optional parameters in Ruby methods?
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
What does the start_of_week method do for a Date object in Ruby?
What is the purpose of the lazy method in Ruby enumerators?
What is the output of the given code? if(a==10 && b=9) print "true" else print "false" end
Which method is used to retrieve file attributes in Ruby?
Which keyword is used to define an instance method in Ruby?
What will be the output of the given code? boolean_1 = 2**3 != 3**2 || true puts boolean_1
What is the output of the given code? if !true print "False" elsif !true || true print "True" end
The following syntax is correct for if conditional statement. if condition code end
Which of the following is NOT a valid method definition syntax in Ruby?
Discusssion
Login to discuss.