How do mark answers on a quiz

what year did franchisee first open

a) 2011
b ) 2013
c) 2015
d) 2014

What has it to do with LibreOffice?

You can use a group of radio buttons or a drop-down list, both are form controls. You can bind the form control to a cell, so that you can evaluate the answer using the functions of the spreadsheet. You can put the form control in front of the bound cell, so that it hides the bound cell.

Or you can use the tool Data > Validity of kind list and enter the possible answers in the list. The user can select one value from a drop-down-list then. You can mark answers correct/wrong by using conditional formatting. Here too, you can evaluate the answers using functions of the spreadsheet.

Or using a macro, that reacts on mouse click.