Create an actions layer that extends the full length of the timeline and in frame 1 create a score variable. As you go along with the quiz, add/subtract value to that variable for right/wrong answers. As long as that layer extends to the end, that variable is accessible to be changed, and at the end will equal whatever value it has accrued.