Vidyalelo
Ruby Programming · Q43

Best Practices and Code Conventions in Ruby

Programming · Ruby Programming · question 43

Q43

What is the purpose of the "Law of Least Astonishment" in Ruby programming?

A.
To minimize the number of lines of code in a program
B.
To ensure that the behavior of code is intuitive and predictable
Answer
C.
To prioritize the performance of code over its readability
D.
None of the above

Answer: Option B

Solution

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