Home / Programming MCQs / Ruby MCQs / Question
V
Q. What will be the output of the given code?
num=4<<2 puts num
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Which Ruby convention is commonly used for naming classes and modules?
For getting an input from the user which method is used?
Which of the following is correct difference between foreach and readlines?
In Ruby, what does the `else` keyword do?
What does the File.exist? method in Ruby return if the specified file exists?
How do you open a file in Ruby in write mode, creating it if it does not exist?
What does the command gem search keyword do in Ruby?
What is the output of the given code? my_string=Ruby puts(my_string)
Discusssion
Login to discuss.