Home / Programming MCQs / Ruby MCQs / Question
V
Q. What will the following expression evaluate to?
true || false
Explanation:
Boolean operator || evaluates to false only when both the values are false.
You must be Logged in to update hint/solution
In Ruby, what is the keyword used to define a loop that repeats until a condition is true?
What is the output of the given code? “Ruby”.length #to find the length of given string
How do you create a new Ruby gem?
The elsif statement can add many alternatives to if/else statements.
Reserved word can not be used as?
what will be output for the following code?
Which of the following features does the 2.0 version of ruby supports?
Discusssion
Login to discuss.