I want to ask how to make this:

I make program for questions like "test" .
First they have 3 fields to fill Name, Age , Email
and down start the questions

and after they finish the questions and press the buton "Check" to Give them the information on .txt file or in other slide don't know but to show them the information like ready to be printed with theyr questions and answers.

Something like this:

Name: Yes
Age: 20
Email: [email protected]

1. What is CCCP ?
a) Russian
b) Bulgaria
B) Greece

and the right answer is a) and if they click on the radio button or checkbox and the show the results that the user has mades

example:

Name: Yes
Age: 20
Email: [email protected]

1. What is CCCP ?
a) Russian

and this way to show the results only the awnsers to the questions that he choose to select and if its wrong answer to be in font = red if its right to be in font = green

can someone help me?