I want to create an exam that has 2 parts: Part 1 will be some questions that students are force to do, and part 2 will be a choose x questions among y to do.
If it weren't for the score, I could simply use the \uplevel
to specify so, but if I use \addpoints
and \gradetable
, I can't get the score to display as I'd like.
Does anyone knows if you can create something like that with the exam
class?
Here is a MWE of what does not work:
\documentclass[addpoints,12pt]{exam}
\begin{document}
\gradetable
\newline Questions \ref{d} to \ref{e} are mandatory
\begin{questions}
\question[20] \label{d} Some question here
\question[20] Some other question here
\question[20] Do these parts
\noaddpoints
\begin{parts}
\part[10] First
\part[10] Second
\end{parts}
\addpoints
\question[20]\label{e} Do this too
\uplevel{Choose only one of the next 2 question}
\question[20] Stuff here
\question[20] Stuff here
\end{questions}
\end{document}
What I'd like on the grade table is the total to add up to 100, and maybe even break it into 2 sections if that is possible. What I have tried is to add a \noaddpoints
after the penultimate question, but this gives the last question a score of 0 in the grade table.
Breaking the exam into 2 question environment does not work either.
Edit The only thing I've found so far is to put the last question as bonus questions, and then use the \bonusgradetable
instead, but that feels weird.
Best Answer
Here is a sample of my exam basic structure. I know there is room for improvement but I haven't had much time to deal with it. After consultation with the author the
exam
class, adding:to the preamble enables the user to access the number of questions in a range with the command
\numqinrange{myrange}
, first with\firstquestion{myrange}
and last question with\lastquestion{myrange}
. See the example below: