Home / Programming MCQs / Ruby MCQs / Question
M
Q. The following is the correct way to use multiline comment. = begin # comment = end
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
What does the return keyword do in Ruby methods?
What is the output of the given code? a=[1,2,3,4,5] b=[1,2,4,6,8] if a[3]==b[2] print "Equal" end
In Ruby, which symbol is used to access the value associated with a key in a hash?
Which of the following is not a valid datatype?
Which command is commonly used to generate a new RSpec test file?
What will be the output of the given ruby code?
Discusssion
Login to discuss.