Home / Programming MCQs / Ruby MCQs / Question
M
Q. What is the output of the given code? counter = 2 while counter < 68 puts counter counter**=2 end
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Which method in Ruby is used to set the position of the file pointer?
It is possible to make array of booleans.
Which Ruby convention is commonly used for naming constants?
What is true about Until loop?
What is the method used to check if an object is an instance of a particular class in Ruby?
What is the output of "hello".reverse in Ruby?
What will be the output of the given ruby code?
Discusssion
Login to discuss.