Ruby MCQ (Multiple Choice Questions)

Ruby MCQ - Multiple Choice Questions and Answers

Our 1000+ Ruby Programming MCQs (Multiple Choice Questions and Answers) focuses on all chapters of Ruby Programming covering 100+ topics. You should practice these MCQs for 1 hour daily for 2-3 months. This way of systematic learning will prepare you easily for Ruby Programming exams, contests, online tests, quizzes, MCQ-tests, viva-voce, interviews, and certifications.

Ruby Programming Multiple Choice Questions Highlights

- 1000+ Multiple Choice Questions & Answers (MCQs) in Ruby Programming with a detailed explanation of every question.
- These MCQs cover theoretical concepts, true-false(T/F) statements, fill-in-the-blanks and match the following style statements.
- These MCQs also cover lots of code, code snippets and/or complete programs.
- These MCQs are organized chapterwise and each Chapter is futher organized topicwise.
- Every MCQ set focuses on a specific topic of a given Chapter in Ruby Programming Subject.

Who should Practice Ruby Programming MCQs?

– Students who are preparing for college tests and exams such as mid-term tests and semester tests on Ruby Programming.
- Students who are preparing for Online/Offline Tests/Contests in Ruby Programming.
– Students who wish to sharpen their knowledge of Ruby Programming Subject.
- Anyone preparing for Aptitude test in Ruby Programming.
- Anyone preparing for interviews (campus/off-campus interviews, walk-in interview and company interviews).
- Anyone preparing for entrance examinations and other competitive examinations.
- All - Experienced, Freshers and College / School Students.

Ruby Programming Chapters

Here's the list of chapters on the "Ruby Programming" subject covering 100+ topics. You can practice the MCQs chapter by chapter starting from the 1st chapter or you can jump to any chapter of your choice.

  1. Ruby Basics
  2. Conditional Statements
  3. Mathematic Operations and Loops
  4. Arrays and Hashes in Ruby Programming Language
  5. Iterators in Ruby
  6. Methods in Ruby
  7. Blocks and Operators in Ruby
  8. Ruby Procs
  9. Ruby Modules, Symbols and strings
  10. Date and time, Ranges and File I/O
  11. Ruby Exceptions and Objects
  12. Ruby Variables and Inheritance

1. Ruby Basics

The section contains multiple choice questions and answers on basics of ruby, data types, variables and library functions.

  • Basics
  • Data Types and Variables
  • Library Functions
  • String Methods
  • Formatting String Methods
  • Comments in Ruby
  • 2. Conditional Statements

    The section contains questions and answers on conditional statements like if, else, elseif, unless and case.

  • The If Conditional Statement
  • The Else Conditional Statement
  • The Elsif Conditional Statement
  • The Unless Conditional Statement
  • Case Conditional Statement
  • advertisement
    advertisement

    3. Mathematic Operations and Loops

    The section contains MCQs on assignment operators, loops like while, until and for and comparison operators.

  • Comparisons
  • Operators
  • Assignment Operators
  • While Loop
  • Until Loop
  • For Loop
  • 4. Arrays and Hashes in Ruby Programming Language

    The section contains multiple choice questions and answers on basics of arrays and hashes.

  • Arrays
  • Arrays of Non-Numbers
  • Arrays of Arrays
  • Introduction to Hashes
  • Adding to a Hash
  • Accessing Hash Values
  • 5. Iterators in Ruby

    The section contains questions and answers on iterations, iterations over hashes, arrays and multidimensional arrays.

  • Introduction to Iteration
  • Iterating over Arrays
  • Iterating over Multidimensional Arrays
  • Iterating over Hashes
  • 6. Methods in Ruby

    The section contains MCQs on methods and its syntax, call methods, parameters and arguments.

  • Methods Syntax
  • Create your own Methods
  • Call Methods
  • Parameters and Arguments
  • 7. Blocks and Operators in Ruby

    The section contains multiple choice questions and answers on blocks, code blocks, sorting, combined operator and control flow sorting.

    advertisement
  • Blocks
  • Using Code Blocks
  • Difference between Blocks and Methods
  • Introduction to Sorting
  • Sorting with Blocks
  • The Combined Comparision Operator
  • Sorting with Control Flow
  • 8. Ruby Procs

    The section contains questions and answers on procs and its syntax, procs calling, lambda and its syntax, difference between lambda and procs.

  • Procs
  • Syntax
  • How to Call Procs?
  • The Ruby Programming Lambda
  • Lambda Syntax
  • Lambda vs. Procs
  • 9. Ruby Modules, Symbols and strings

    The section contains MCQs on modules, symbols and its syntax, conversion of symbols.

  • Modules
  • Symbols
  • Symbols Syntax
  • Converting between Symbols and Strings
  • advertisement

    10. Date and time, Ranges and File I/O

    The section contains multiple choice questions and answers on basics of date and time, ranges and file i/o.

  • Dates and Time
  • Ranges
  • File I/O
  • 11. Ruby Exceptions and Objects

    The section contains questions and answers on exception handling, classes and objects and its syntax.

  • Raising an Exception
  • Handling an Exception
  • Classes and objects
  • Class Syntax
  • Objects
  • Instantiating Your First Object
  • 12. Ruby Variables and Inheritance

    The section contains MCQs on class and global variables, inheritance, overriding, information hiding techniques.

  • Classes-Naming Variables
  • Class Variables
  • Global Variables
  • Inheritance
  • Inheritance Syntax
  • Override
  • Basics of Information Hiding in Ruby
  • If you would like to learn "Ruby Programming" thoroughly, you should attempt to work on the complete set of 1000+ MCQs - multiple choice questions and answers mentioned above. It will immensely help anyone trying to crack an exam or an interview.

    Wish you the best in your endeavor to learn and master Ruby Programming!

    advertisement
    Manish Bhojasia - Founder & CTO at Sanfoundry
    Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

    Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.