Home / Programming MCQs / Ruby MCQs / Question
Y
Q. Which of the following is correct syntax to create an array in ruby?
We can create an array using both option A and option B.
You must be Logged in to update hint/solution
What is the result of the expression: 10 % 3 in Ruby?
What will be output for the following code?
What does the join method do when used with an array in Ruby?
What is the output of the given code? for num in 1..3 puts num for i in 1..2 puts num*i end end
Which command is commonly used to run Cucumber tests from the command line?
Which statement is used to Jumps to the next iteration of the most internal loop?
Discusssion
Login to discuss.