71. What is the purpose of the Module#attr_reader, Module#attr_writer, and Module#attr_accessor methods in Ruby? A. They define getter, setter, and both getter and setter methods for instance variables respectively B. They define methods for reading, writing, and both reading and writing instance variables respectively C. They define methods for reading instance variables, writing class variables, and both respectively D. They define methods for reading, writing, and both reading and writing class variables respectively Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
72. What is the purpose of the method_missing method in Ruby's BasicObject class? A. It is called when a method is defined on a class object that already exists B. It is called when a method is called on a class object that does not exist C. It is called when a method is defined on an object that already exists D. It is called when a method is called on an object that does not respond to the method Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
73. What does the term "aliasing" refer to in Ruby? A. Creating a copy of an existing method or variable B. Renaming an existing method or variable C. Deleting an existing method or variable D. Creating an alternate name for an existing method or variable Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
74. What is the purpose of the Kernel#autoload method in Ruby? A. It automatically loads a specified file when a constant is accessed for the first time B. It loads all files in a directory when the program starts C. It reloads a file every time it is accessed D. It loads a file asynchronously to improve performance Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board