Here is a recent example of a value procedure (function):
Value procedures are my favorite kind of procedures, because you can connect their calls together like plumbers connect plumbing fittings and water pipes (except we use data instead of water.)
Here are some value procedures to consider for your quiz project:
answer(question):
returns what the answer should be for a given question text, hiding the lookup table work from the caller
points(question,answer):
returns how many points(+) would be added or subtracted (-) from total score if that question was answered with 'answer').
compliment (points):
What compliment ('Correct!', 'Wrong',...) to display after scoring the given number of points.
(This should be the easiest one.)