Home / Programming MCQs / Ruby MCQs / Question
M
Q. What is the output of the given code? counter = 100 while counter > 0 puts counter counter-=25 end
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
What is the output of the given code?
What is the default value of a variable in Ruby if not initialized?
In Ruby, what is the default file extension for Ruby files?
What is the output of "hello".upcase in Ruby?
Which keyword is used to begin the exception handling block in Ruby?
What does the gem install gemfile command do in Ruby?
Which method in Ruby is used to read a line from a file?
In Ruby, what is the purpose of the `case` statement when combined with `when` clauses?
Discusssion
Login to discuss.