[Tex/LaTex] Titled & Untitled Questions in same document

exam

I need to have sections in an exam I am writing. The first 10 questions are multiple choice, which I would like to number simply 1-10. For the extended response, I would like to title the questions. Is there a way to do this in the exam class? Thank you for your help.

Best Answer

This is described in the documentation: You can use \titledquestion to assign a title to your question. In order for this title to be used in the question section, you also need to redefine the \qformat. The format changes only apply to the questions that come after the \qformat command, so you could first have the normal questions, then issue a \qformat to get the titles. To revert back to the simple style, you can use \noqformat.

Here's a simple example:

Exam with titled question

\documentclass{exam}
\begin{document}

\begin{questions}

\question[1]
What if I say I'm not like the others?
\begin{choices}
\choice You're the pretender
\choice I will never surrender
\end{choices}

\qformat{\thequestion. \textbf{\thequestiontitle} \hfill (\thepoints)}

\titledquestion{Complicated Long Question}[10] Identify all known unknowns and embrace complexity.

\noqformat
\question[1] Are you happy this is over?
\end{questions}

\end{document}
Related Question