Home / Programming Questions / Ruby MCQs / Page 18
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. What is the extension used for saving the ruby file?
M
Q. What is the sequence of ruby strings?
M
Q. Which of the following languages syntax matches with the Ruby's syntax?
M
Q. What is the output of given code? puts "what is your first name?" name=gets.chomp puts "what is your surname?" surname=gets.chomp
M
Q. We use semicolon or parentheses after every print or puts statement.
M
Q. What will we the output of the given code? "I'am Learning RUBY Language".downcase
M
Q. What is the output of the given code? "Ruby Language".length =begin calculate length =end
M
Q. The .upcase and .capitalize method are used for capitalizing the whole string.
Don't have account? Register here.