how to hide "Retry" button in quiz
When you create a new quiz (question set) you can set in Behavioural settings if "Retry" button should be shown or not (Enable "Retry" button) for every question
Also you can set general settings in the section "Settings for "Check", "Show solution" and "Retry" at quiz level. From here you can override "Retry" button and this option determines if the "Retry" button will be shown for all questions, disabled for all or configured for each question individually.