Home / Programming MCQs / Ruby MCQs / Question
M
Q. What does the `next` keyword do in a loop in Ruby?
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
.......... used for Creates a range from start point to end point exclusive.
What is the output of the given code? a= 5 b=10 while a <10 && b<20 puts a-b a+=2 b+=2 end
Which of the following methods is used to remove a key-value pair from a hash in Ruby?
What is the output of the following code snippet? x = 10 unless x > 15 puts "Hello" end
What does the month method return for a Date object in Ruby?
Which of the following is NOT a logical operator in Ruby?
What is an enumerator in Ruby?
What does the super keyword do in Ruby?
What does the \d character class represent in a regular expression in Ruby?
Discusssion
Login to discuss.