How to prevent a user from changing an answer option after moving to another survey page

I want to use a survey as a test questionnaire. After answering questions in a group of questions, I set up the output of results with the number of correct answers. But the respondent can go back and change the answer. How can I prevent the user from changing the answer option after moving to another page of the survey? Could you provide specific examples?
I know that it is impossible to set up the receipt of results after clicking a button.

@ravil87, if you want to control this from the form design perspective you could always use the once function as outlined in this image shared below:

In the survey tab of your XLSForm:

In the choices tab of your XLSForm:

Results unchanged under the calculation field even when modifying it on the server:

Reference XLSForm:

Once Function.xlsx (9.4 KB)