31. What is the significance of using the super keyword in a Ruby class? A. It initializes a superclass object B. It returns the superclass C. It calls the same method in the superclass D. It calls the same method in the subclass Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
32. Which of the following statements best describes the purpose of the attr_accessor method in Ruby classes? A. It defines only a reader method for class attributes B. It defines only a writer method for class attributes C. It defines constructor methods for class attributes D. It defines both reader and writer methods for class attributes 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
33. What is the main advantage of using Object-Oriented Programming (OOP) principles? A. Modularity and reusability B. Improved performance C. Simplicity and ease of use D. Reduced memory usage 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
34. What does the term "abstraction" mean in Object-Oriented Programming? A. It defines class methods B. It restricts access to public methods C. It exposes all the implementation details D. It hides the complex implementation details and only shows the necessary features 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