You can keep the players answers in a Json string or an XML file.
Or if it just a choice question where they just select things from already written answer, you can add a function to add +1 to a variable depending on what they pick, example you have 3 choices, 1 is apple, 2 is banana and 3 is avocado, if player selects apple, add +1 to global variable apple. In the end you keep those variables in local storage, or if its multiplayer game you keep them in an json or XML file which you load on start of game with AJax call.
Thank you so much! I have a much clearer idea now.
By the way, instead of global variable, is it possible to use array to stored value since there would probably be more than 100 questions available and it must be like 100+ global variable to organize.
Also, could Ajax handle it when says 10 people play, access, and edit data at the same time?