Exam Template
Forfatter
Caleb McWhorter
Sidst opdateret
5 år siden
Licens
Creative Commons CC BY 4.0
Resumé
A template for creating course exams.
\documentclass[12pt,letterpaper]{article}
\usepackage[lmargin=1in,rmargin=1in,tmargin=1in,bmargin=1in]{geometry}
% -------------------
% Packages
% -------------------
\usepackage{
amsmath, % Math Environments
amssymb, % Extended Symbols
enumerate, % Enumerate Environments
graphicx, % Include Images
lastpage, % Reference Last Page
multicol, % Use Multi-columns
multirow, % Use Multi-rows
tabularx, % Tabular Environment for T/F
tikz, % Create Tikz Diagrams
tkz-euclide % Automate Graph Plots
}
% -------------------
% Course & Exam Information
% -------------------
\newcommand{\course}{MAT 999}
\newcommand{\term}{Fall 2018}
\newcommand{\exam}{Exam 2}
% -------------------
% Font
% -------------------
\usepackage[T1]{fontenc}
\usepackage{charter}
% -------------------
% Commands
% -------------------
\newcommand{\examtitle}{\noindent\textbf{\course\quad\term\quad\exam}\hfill \textbf{Name:}\underline{\hspace{8cm}}\vspace{0.5cm}}
\newcounter{problem}
\newcommand{\problem}{
\stepcounter{problem}%
\noindent\theproblem. }
\newenvironment{2enumerate}{%
\begin{enumerate}[(a)]
\begin{multicols}{2}
}{%
\end{multicols}
\end{enumerate}
}
\newcommand{\pspace}{\par\vspace{\baselineskip}}
\newcommand{\emptybox}[2][\textwidth]{%
\begingroup
\setlength{\fboxsep}{-\fboxrule}%
\noindent\framebox[#1]{\rule{0pt}{#2}}%
\endgroup
}
% -------------------
% Header & Footer
% -------------------
\usepackage{fancyhdr}
\fancypagestyle{pages}{
%Headers
\fancyhead[L]{}
\fancyhead[C]{}
\fancyhead[R]{}
\renewcommand{\headrulewidth}{0pt}
%Footers
\fancyfoot[L]{}
\fancyfoot[C]{}
\fancyfoot[R]{\thepage \,of \pageref{LastPage}}
\renewcommand{\footrulewidth}{0.0pt}
}
\headheight=0pt
\footskip=12pt
\pagestyle{pages}
% -------------------
% Content
% -------------------
\begin{document}
\examtitle
% Instructions and Scores
\noindent\fbox{\begin{minipage}{0.70\textwidth}
\begin{itemize}
\item Write your name at the top of this exam.
\item This exam has 11 questions and \pageref{LastPage} pages.
\item In order to receive credit, you must show your work.
\item Simplify your answers whenever possible. Keep your answers exact.
\item Calculators, phones, and other electronic devices are not permitted.
\end{itemize}
\end{minipage}
}\hfill \begin{minipage}{0.25\textwidth}
\begin{tabular}{|c|c|c|} \hline
Question & Points & Score \\
1 & & \\ \hline
2 & & \\ \hline
3 & & \\ \hline
4 & & \\ \hline
5 & & \\ \hline
6 & & \\ \hline
7 & & \\ \hline
8 & & \\ \hline
9 & & \\ \hline
10 & & \\ \hline
11 & & \\ \hline \hline
Total & & \\ \hline
\end{tabular}
\end{minipage} \vspace{1cm}
% -------------------
% Questions
% -------------------
% Question 1
\problem This is a numbered problem. \pspace
% Question 2
\problem This is the second numbered problem. \pspace
% Question 3
\problem Choosing an answer to this questions at random, what is the chance that it will be correct?
\begin{enumerate}[(a)]
\item 25\%
\item 50\%
\item 70\%
\item 25\%
\end{enumerate}
% Question 4
\newpage
\problem Solve the Riemann Hypothesis. Be sure to justify each step.
% Question 5
\newpage
\problem Write an answer to an unasked question in the space below. \pspace
\emptybox{2in}
% Question 6
\newpage
\problem Write an award winning level novel in the space below. \pspace
\emptybox{8in}
% Question 7
\newpage
\problem Answer the following parts completely. \vspace{0.5cm}
\begin{enumerate}[(a)]
\item What is Mathematics? \vspace{2cm}
\item Why are we here? \vfill
\item What is the meaning of life? \vfill
\end{enumerate}
% Question 8
\newpage
\problem Choose an option.
\begin{enumerate}[(a)]
\item Here is an option.
\item Here is another.
\item A third choice!
\end{enumerate}
% Question 9
\newpage
{%
% Defines choice options: \roman, \arabic, etc
% \renewcommand*\thechoice{\roman{choice}}
% \renewcommand*\itemlabel{\thechoice)}
\problem What is $2+2=$ ?
\begin{multicols}{2}
\begin{enumerate}[(a)]
\item Martha Washington
\item Mars
\item 17
\item 4
\item $-4$
\item Cannot be determined.
\item None of the above.
\item All of the above.
\end{enumerate}
\end{multicols}
}%
% Question 10
\newpage
\problem Draw a graph below.
\[
\begin{tikzpicture}
\tkzInit[xmax=7,ymax=7,xmin= -7,ymin= -7]
\tkzGrid
\tkzAxeXY
\end{tikzpicture}
\]
% Question 11
\newpage
\problem Draw a graph below.
\[
\begin{tikzpicture}[x=1cm, y=1cm, semitransparent]
\draw[step=1mm, line width=0.1mm, black!30!white] (0,0) grid (15,15);
\draw[step=5mm, line width=0.2mm, black!40!white] (0,0) grid (15,15);
\draw[step=5cm, line width=0.5mm, black!50!white] (0,0) grid (15,15);
\draw[step=1cm, line width=0.3mm, black!90!white] (0,0) grid (15,15);
\end{tikzpicture}
\]
\end{document}