Questions tagged [exam]

the {exam} document class provides a number of useful features for typesetting exams - in particular it provides a Question environment with parts, and can keep track of points

The exam document class:

Provides a class exam, which eases production of exams, even by a LaTeX novice. Simple commands are provided to:

  • create questions, parts of questions, subparts of parts, and subsubparts of subparts, all with optional point values;
  • create a grading table, indexed either by question number (listing each question and the total possible points for that question) or by page number (listing each page with points and the total possible points for that page);
  • create headers and footers that are each specified in three parts: one part to be left justified, one part to be centered, and one part to be right justified, in the manner of fancyhdr

Headers and/or footers can be different on the first page of the exam, can be different on the last page of the exam, and can vary depending on whether the page number is odd or even, or on whether the current page continues a question from a previous page, or on whether the last question on the current page continues onto the following page.

Multiple line headers and/or footers are allowed, and it's easy to increase the part of the page devoted to headers and/or footers to allow for this.

A quick example:

enter image description here

\documentclass{exam}
\begin{document}
\begin{questions}
\question[10]
Why is there air?
\question
What if there were no air?
\begin{parts}
\part[5]
Describe the effect on the balloon industry.
\part[5]
Describe the effect on the aircraft industry.
\end{parts}
\question[20]
\begin{parts}
\part
Define the universe. Give three examples.
\part
If the universe were to end, how would you know?
\end{parts}
\end{questions}
\end{document}
939 questions
35
votes
4 answers

How can I typeset an exam or assignment paper?

I want to use LaTeX for exam and assignment papers for a class that I am teaching. I obviously could just do the whole thing myself. But, what alternatives are there for easily typesetting such documents? Ideally, the solution would handle points…
vanden
  • 30,891
  • 23
  • 67
  • 87
23
votes
6 answers

exam class - permute mc answer choices, generate answer key

I happily use the exam document class to create exams and quizzes. I often make at least part of my exams multiple choice, and I'd like to be able to generate multiple versions of the exam by permuting the answer choices (automatically, rather…
Jason
  • 485
21
votes
4 answers

Variations of an exam

I'm using the great exam package to create exams. But sometimes there are many students so I need to create different "versions" - Group A and Group B. Mainly the differences are only the numbers in questions so the text of questions are similar.…
uzsolt
  • 1,431
19
votes
5 answers

Answers at the end of the exam document

I'm using the exam class, and I want to add answers. Right now the solutions are printet after the question, but before the next question. Ideally they would be presented at the end of a serie of questions. I'd like either the numeric or very…
Holene
  • 6,920
16
votes
2 answers

Customized bonus questions in exam class

I'm using the exam class (with the addpoints option) to create assignments, and I want to create some bonus questions. I have a customized question format that looks like this: \qformat{Question \thequestion: [\totalpoints]} which works fine for…
Suresh
  • 16,511
  • 14
  • 55
  • 64
16
votes
3 answers

Determining total points in a section with exam class

In an exam I am writing, I have a short answer section and a multiple choice section. Each of these sections should have questions starting at 1. As pointed out in this question, if you want to do this and avoid warnings about name collisions of…
13
votes
2 answers

Titled & Untitled Questions in same document

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? …
bbujeya
  • 611
13
votes
3 answers

How to HIDE and SHOW answer?

I want to make a handout, which contains a lot of questions. I want a output of this: Another output is like this: The 3rd output is like this: Calculate 1+2 Calculate 1+2+3 Calculate 1+2+3+4 Calculate 1+2+3+4+5 Calculate…
12
votes
3 answers

Manually setting the total number of points in the exam document class

I am writing an exam using the exam document class. In the exam you only need to answer 10 out of 12 questions (10 points each question). When I create the grade table with the command \gradetable, the total number of points is 120. How can I…
Alejandro
  • 3,746
11
votes
1 answer

How could I typeset odd item or even item respectively in examination paper?

I want to write a tex file of an examination paper like (Derivative function) 1. $3x-1$ 2. $2x+1$ 3. $4x^2+2x+3$ 4. $7x^3-3x-6$ 5. $\sin6x-7$ 6. $\cos5x+2$ And then, I can set a logical variable \examtype, say, =0, typeset Exam paper…
fastbamra
  • 303
11
votes
1 answer

Exam class: answerspace for students same space as printed answers

I'm a professor and I use the exam class very often in LaTeX. \begin{solutionorlines}[4cm] creates 4cm of space for students to answer. When I type \printanswers it shows the answers but it doesn't keep the same space as when the answers are not…
bert
  • 111
11
votes
1 answer

Exam documentclass question title grading table

How can I give my question a name and a the same time show in the grading table only its number? For example, in the main text I'd like the question to be something like "Question 1: Cauchy-Schwartz Inequality.................(10 points)" but the…
ExamBeginner
  • 111
  • 3
10
votes
2 answers

Exam Class : Points in the right Margin for \question

I've a .tex file with \question \part and \subpart (sample .tex file pasted in this question). I need all points in the right margin; currently for \question it's not coming in the margin. Also I want to replace default Question number with…
Pawan Mude
  • 2,921
9
votes
1 answer

Textbook package compatible with examdoc

I really like the examdoc class. I almost always use it to create exams, tests, ... However... I'd like to make a textbook. In it should be several exercises, with (preferably) their solutions in an appendix. I encounter following problems: I'm…
long tom
  • 1,079
9
votes
1 answer

exam: Calculating parent question marks based on its children's

I would like to calculate the total marks of the questions, parts, and subparts based on their children's. \documentclass[addpoints,answers,10pt]{exam} \marksnotpoints \marginpointname{…
Diaa
  • 9,599
1
2 3
16 17