Vidyalelo
Ruby Programming · Q39

Best Practices and Code Conventions in Ruby

Programming · Ruby Programming · question 39

Q39

Which Ruby convention is commonly used for naming predicate methods that return a boolean value?

A.
Method names starting with get_
B.
Method names ending with ?
Answer
C.
Method names ending with bool
D.
None of the above

Answer: Option B

Solution

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