Adaptive mode (all or nothing)
Copy this directory to question/behaviour/adaptiveallnothing in Moodle directory root. Login as admin to complete plugin installation. Then choose this behaviour while editing quiz settings. All questions in the quiz will then always will receive zero or the maximum marks after penalty for attempts when graded.