col1,col2 What is Ruby?,"Ruby is a dynamic, object-oriented programming language." Who created Ruby?,"Ruby was created by Yukihiro Matsumoto, also known as Matz." When was Ruby first released?,Ruby was first released in 1995. What is the syntax for defining a variable in Ruby?,"In Ruby, variables are defined using the syntax, variable_name = value." What is the difference between single quotes and double quotes in Ruby?,"Single quotes ('') preserve the literal value of each character, while double quotes ("""") allow for string interpolation." What is string interpolation in Ruby?,"String interpolation is the process of embedding expressions within a string, using the #{expression} syntax." How do you define a method in Ruby?,"In Ruby, methods are defined using the syntax, def method_name(parameters) ... end." What is the difference between a class method and an instance method in Ruby?,"A class method is called on the class itself, while an instance method is called on an instance of the class." What is a module in Ruby?,"A module in Ruby is a way to group related methods, classes, and constants together." How do you include a module in a class in Ruby?,"To include a module in a class, you use the include keyword followed by the module name." "What is the difference between public, private, and protected methods in Ruby?","Public methods can be called by anyone, private methods can only be called within the class, and protected methods can be called within the class and its subclasses." What is the difference between an array and a hash in Ruby?,"An array is an ordered collection of objects, while a hash is an unordered collection of key-value pairs." How do you access elements in an array in Ruby?,"You can access elements in an array using their index, starting from 0." How do you add elements to an array in Ruby?,You can add elements to an array using the push or << operator. How do you define a hash in Ruby?,"In Ruby, a hash is defined using the syntax, {key1, value1, key2, value2}." How do you access values in a hash in Ruby?,You can access values in a hash using their corresponding keys. What is the difference between a symbol and a string in Ruby?,"Symbols are immutable and unique, while strings are mutable and can have multiple instances with the same value." What is the ternary operator in Ruby?,"The ternary operator in Ruby is a shorthand way to write if-else statements, using the syntax, condition ? true_expression , false_expression." What is the difference between a block and a lambda in Ruby?,"A block is a piece of code that can be passed to a method, while a lambda is an object that can be stored in a variable and called later." What is the purpose of the 'require' keyword in Ruby?,The 'require' keyword is used to load external libraries or files in Ruby.