Home / Programming MCQs / Ruby MCQs / Question
V
Q. What is true about Until loop?
Explanation:
Executes code while conditional is false. An until statement`s conditional is separated from code by the reserved word do, a newline, or a semicolon.
You must be Logged in to update hint/solution
What is the recommended indentation style in Ruby?
What does polymorphism allow in OOP?
What is the correct syntax for accessing a class method?
What does the ordinal method return for a Date object in Ruby?
What is the purpose of the `public` keyword in Ruby?
What is the output of the given code? counter = 0 until counter >= 10 puts counter counter+=1 end
What is the result of the expression: !(true && false) in Ruby?
What is the output of the code? variable=true if !variable puts "true" else puts "false" end
Which method is used to change the mode or permissions/access list of a file?
What will be the output of the given code? "Come let's learn.reverse Ruby.length language".upcase
Discusssion
Login to discuss.