code: def answered_by(self, rec):
          
          return self.clazz == rec.clazz and \
                  (self.type == rec.type or self.type == _TYPE_ANY) and \
                  self.name == rec.name
docs: Returns true if the question is answered by the record