(3 pts) Which of the following statements is TRUE regarding Listing 1, checking if a string reads the same backwards
You could add this method to the
class by reopening String and defining palindrome? as a class
You could add this as a class method in the
class by putting it in a module, reopening
to "mix" that module into
The method will work correctly when added to any class that provides a class method
The method will work correctly when mixed into any class whose instances respond to
returning a reversed version of themselves.
The method will work correctly if the class includes the <=> instance method.
1 class Professor
@tasks = tasks
@velocity = points
10 patterson = Professor.new(3)
11 fox = Professor.new
(3 pts) Given the Ruby code in Listing 2, which of the following is FALSE?
(3 pts) Still referring to Listing 2, which statement is FALSE about the