| 1 |
\documentclass[a4paper]{article} |
| 2 |
\usepackage[% |
| 3 |
allowrandomize, |
| 4 |
nosolutions, |
| 5 |
forpaper,pointsonleft,noparttotals]{eqexam} |
| 6 |
\usepackage[usedbapp]{ran_toks} |
| 7 |
|
| 8 |
\useLastAsSeed |
| 9 |
% To reproduce the same pseudo-random sequence, you need to supply a seed |
| 10 |
%\useThisSeed{1125676795} |
| 11 |
|
| 12 |
\examNum{1} |
| 13 |
\title[T\nExam]{Test \nExam} |
| 14 |
\author{D. P. Story} |
| 15 |
\subject[MC]{My Course} |
| 16 |
\date{Spring \the\year} |
| 17 |
\keywords{Test~\nExam, Section 001} |
| 18 |
\university |
| 19 |
{% |
| 20 |
THE UNIVERSITY OF AKRON\\ |
| 21 |
Theoretical and Applied Mathematics |
| 22 |
} |
| 23 |
\email{[email protected]} |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
%\uniqueXDBChoicesOn |
| 28 |
%\viewIDstrue % to view the IDs of problems used\university |
| 29 |
%\doNotRandomizeChoices % eqexam 2021/01/20 |
| 30 |
%\allowRandomizedChoices % eqexam 2021/01/20 |
| 31 |
|
| 32 |
|
| 33 |
% Input the DB files used in the demo file |
| 34 |
\useTheseDBs{db1,db2,db3,db4} |
| 35 |
|
| 36 |
|
| 37 |
\begin{document} |
| 38 |
\maketitle |
| 39 |
|
| 40 |
\begin{exam}{Part1} |
| 41 |
|
| 42 |
\begin{instructions} |
| 43 |
Solve each without error. Passing is 100\%. |
| 44 |
|
| 45 |
\medskip\noindent |
| 46 |
This part demonstrates how to not only randomly pull problems (two from each of the DB files), but |
| 47 |
to randomize the order they are listed in the exam. |
| 48 |
\end{instructions} |
| 49 |
|
| 50 |
\ranToksOff |
| 51 |
|
| 52 |
\ranToks{myExam} |
| 53 |
{% |
| 54 |
{\useRanTok[DB1]{1}} |
| 55 |
{\useRanTok[DB1]{2}} |
| 56 |
{\useRanTok[DB2]{1}} |
| 57 |
{\useRanTok[DB2]{2}} |
| 58 |
{\useRanTok[DB3]{1}} |
| 59 |
{\useRanTok[DB3]{2}} |
| 60 |
{\useRanTok[DB4]{1}} |
| 61 |
{\useRanTok[DB4]{2}} |
| 62 |
} |
| 63 |
\displayListRandomly{myExam} |
| 64 |
|
| 65 |
\end{exam} |
| 66 |
|
| 67 |
\newpage |
| 68 |
|
| 69 |
%\uniqueXDBChoicesOff |
| 70 |
|
| 71 |
\begin{exam}{Part2} |
| 72 |
|
| 73 |
\begin{instructions} |
| 74 |
In this part, when \verb~\uniqueXDBChoicesOff~ (the default) is |
| 75 |
expanded, we take the same two problems from each of the four DB |
| 76 |
files, but here, we do not randomize the order of the questions. However, |
| 77 |
when \verb~\uniqueXDBChoicesOn~ is expanded in the preamble, |
| 78 |
this set of eight questions are entirely different from the ones |
| 79 |
of \textsf{Part1}. |
| 80 |
\end{instructions} |
| 81 |
|
| 82 |
\useRanTok[DB1]{1} |
| 83 |
\useRanTok[DB1]{2} |
| 84 |
\useRanTok[DB2]{1} |
| 85 |
\useRanTok[DB2]{2} |
| 86 |
\useRanTok[DB3]{1} |
| 87 |
\useRanTok[DB3]{2} |
| 88 |
\useRanTok[DB4]{1} |
| 89 |
\useRanTok[DB4]{2} |
| 90 |
|
| 91 |
\end{exam} |
| 92 |
|
| 93 |
\end{document} |