Ruby MCQ Questions

  1. Is Ruby a strongly typed language?
  2. Ruby is an object oriented general purpose programming language.
  3. ........... syntax matches with the Ruby’s syntax.
  4. Which of the following is the file extension used for saving the ruby file?
  5. Which of the following datatypes are valid in Ruby?
  6. What are the sequence of ruby strings?
  7. Which of the following are valid floating point literal in ruby?
  8. What does the .upcase method do?
  9. Which of the following type of comments are valid in ruby?
  10. Which of the following symbol is used for commenting in ruby?
  11. Which of the following is valid conditional statement in ruby?
  12. The == ‘is equal to’ is known as relational operator in ruby?
  13. What does the 1…10 indicate?
  14. What is ruby?
Ruby MCQ

Take Ruby MCQ Quiz & Online Test to Test your Knowledge

We have listed below the best Ruby MCQ Questions that check your basic knowledge of Ruby Programming Language. This Ruby MCQ Test contains 20 Multiple Choice Questions. You have to select the right answer to the question. You can also download the Ruby MCQ Pdf from the given link between the Quiz.

  • Yes
  • No
  • String
  • Boolean
  • Numbers
  • All of the Above
Download Free : Ruby MCQ PDF
View Answer
  • 8-bit bytes
  • 10-bit bytes
  • 16-bit bytes
  • None of above
View Answer
  • Convert the string to lowercase
  • Convert the string to uppercase
  • Convert only lowercase string to uppercase and vice-versa
  • None of above
View Answer
  • Single Line
  • Multiple Line
  • Both Single & Multiple Line
  • None of above
View Answer
  • Inclusive range
  • Exclusive range
  • Both inclusive and exclusive range
  • None of above
View Answer
  • Markup language
  • Scripting language
  • Procedural language
  • Stylesheet language
View Answer
  • 1991, Brendan Eich
  • 1992, Tim Berners-Lee
  • 1993, Yukihiro Matsumoto
  • 1994, Brendan Eich
View Answer
  • Unix
  • Mac OS
  • Windows
  • All of the Above
View Answer
  • Dynamic Type System
  • Multiple Programming Paradigms
  • Automatic Memory Management
  • All of the Above
View Answer
  • New literals
  • Security fixes
  • Method keyword arguments
  • All of the Above
View Answer