public function __construct(question_attempt $qa, $preferredbehaviour)
 {
     parent::__construct($qa, $preferredbehaviour);
     $this->applypenalties = 'adaptivenopenalty' !== $preferredbehaviour;
 }