%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% NOTES
% this is a total hack by mathgrrl / laurataalman@gmail.com
% goal: enable fast generation of randomized quizzes with encoded answers.
% instructions: fill out the first sections and the problem bank,
% then compile and print. decode version number to get the quiz key.
% warning: this code can choose duplicate problems on random quizzes;
% when this happens a "repeat" warning will appear at the bottom of the quiz.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% TITLE DEFINITIONS
\def\CourseName{MATH 231}
\def\SectionNumber{xxx}
\def\SectionName{xxx}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% HOMEWORK ASSIGNMENT
\def\Homework{
xxx // xxx // xxx // xxx
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% PROBLEM SELECTOR AND RANDOMIZATION OPTIONS
\def\QuizType{random} % first, random, or last problem bank
\def\ProblemOrder{123} % set problem order for first/last quizzes
\def\MCorder{1234} % set multiple choice ordering
\def\ShowAnswers{no} % set as "yes" to show answers with asterisks
\def\PrintTestBank{no} % set as "yes" to print entire test bank
\def\banksize{9} % number of problems in the bank so far
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PROBLEM BANKS
% difficulty levels:
% 1 = EASY (e.g. choose a function with a given property)
% 2 = HARD (e.g. which one of the following is true?)
% 3 = VERY HARD (e.g. have to do a multi-step calculation and get an exact answer)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% FIRST-TIME MASTERY QUIZ - 3 PROBLEMS
%% problem - banksize is now 1
\def\firstAtag{xxx}
\def\firstAdiff{9}%set
\def\firstA{
\prob{first-time quiz first problem}
\MCfour
{xxx}
{the answer is HERE \ANSWER}%
{xxx}
{xxx}}
%% problem - banksize is now 2
\def\firstBtag{xxx}
\def\firstBdiff{9}%set
\def\firstB{
\prob{first-time quiz second problem}
\MCfour
{xxx}
{xxx}
{xxx}
{the answer is HERE \ANSWER}}%
%% problem - banksize is now 3
\def\firstCtag{xxx}
\def\firstCdiff{9}%set
\def\firstC{
\prob{first-time quiz third problem}
\MCfour
{the answer is HERE \ANSWER}%
{xxx}
{xxx}
{xxx}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% RETAKE PROBLEM BANK
%% problem - banksize is now 4
\def\AAAtag{xxx}
\def\AAAdiff{9}%set
\def\AAA{
\prob{first test bank problem}
\MCone
{xxx}
{the answer is HERE \ANSWER}%
{xxx}
{xxx}}
%% problem - banksize is now 5
\def\BBBtag{xxx}
\def\BBBdiff{9}%set
\def\BBB{
\prob{second test bank problem}
\MCone
{xxx}
{xxx}
{the answer is HERE \ANSWER}%
{xxx}}
% problem - banksize is now 6
\def\CCCtag{xxx}
\def\CCCdiff{9}%set
\def\CCC{
\prob{third test bank problem}
\MCone
{the answer is HERE \ANSWER}%
{xxx}
{xxx}
{xxx}}
% problem - banksize is now 7
\def\DDDtag{xxx}
\def\DDDdiff{9}%set
\def\DDD{
\prob{fourth test bank problem}
\MCone
{xxx}
{the answer is HERE \ANSWER}%
{xxx}
{xxx}}
% problem - banksize is now 8
\def\EEEtag{xxx}
\def\EEEdiff{9}%set
\def\EEE{
\prob{fifth test bank problem}
\MCone
{xxx}
{xxx}
{xxx}
{the answer is HERE \ANSWER}}%
% problem - banksize is now 9
\def\FFFtag{xxx}
\def\FFFdiff{9}%set
\def\FFF{
\prob{sixth third test bank problem}
\MCone
{xxx}
{the answer is HERE \ANSWER}%
{xxx}
{xxx}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% LAST-TIME MASTERY QUIZ FOR FINAL EXAM - 3 PROBLEMS
%% (could just steal three problems from above if you want)
%% problem - banksize is now 14
\def\lastAtag{xxx}
\def\lastAdiff{0}%set
\def\lastA{
\prob{first final exam problem}
\MCone
{xxx}
{the answer is HERE \ANSWER}%
{xxx}
{xxx}}
%% problem - banksize is now 15
\def\lastBtag{xxx}
\def\lastBdiff{0}%set
\def\lastB{
\prob{second final exam problem}
\MCone
{xxx}
{xxx}
{the answer is HERE \ANSWER}%
{xxx}}
%% problem - banksize is now 16
\def\lastCtag{xxx}
\def\lastCdiff{0}%set
\def\lastC{
\prob{third final exam problem}
\MCone
{xxx}
{xxx}
{xxx}
{the answer is HERE \ANSWER}}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% GENERATE QUIZ BASED ON THE ABOVE
\input{MASTERY-QUIZ-GENERATOR.tex}