Vidyalelo
Ruby Programming · Q25

Best Practices and Code Conventions in Ruby

Programming · Ruby Programming · question 25

Q25

What is the purpose of the Single Responsibility Principle (SRP) in Ruby programming?

A.
Each module should be responsible for only one feature
B.
Each class should have only one reason to change
Answer
C.
Each file should contain only one class
D.
None of the above

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board