Home / Programming Questions / Ruby MCQs / Page 19
Dear candidates you will find MCQ questions of Ruby here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
M
Q. The downcase method changes the whole string to smallcase letters.
M
Q. Which of the following are valid floating point literal?
M
Q. What is the role of ! at the end of the capitalize method?
M
Q. What will be the output of the given code? "I'am learning Ruby Language".length.reverse.upcase
M
Q. What is the range of octal notation (\nnn)?
M
Q. Which of the following type of comments are valid in ruby?
M
Q. Why do we use =begin and =end?
M
Q. What is the output of the given code? x, y, z = 12, 36, 72 puts "The value of x is #{ x }." puts "The sum of x and y is #{ x + y }." puts "The average was #{ (x + y + z)/3 }."
Don't have account? Register here.