Home / Programming MCQs / Ruby MCQs / Question
M
Q. In Ruby, what is the keyword used to define a class?
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Which command is used to view information about a specific gem in Ruby?
Which symbol is used to declare a variable in Ruby?
In Ruby, which of the following is used to handle multiple conditions with one expression?
Which of these operators is used for string concatenation?
What is an enumerator in Ruby?
What is the output of the given code? a=5 b=15 while b>a puts a*(b-a) while a>b a+=1 b-=1 end end
What is the keyword used to define a conditional statement in Ruby?
If statement inside if statement is called Nested if statements.
What does the max_by method do in Ruby enumerators?
Which method is used to create a new instance of a class in Ruby?
Discusssion
Login to discuss.