Taif University Exam Template
作者:
Faisal Al-Malki
最近上传:
5 年前
许可:
Creative Commons CC BY 4.0
摘要:
A LaTeX template for typing exams using exam
package.
\begin
Discover why 18 million people worldwide trust Overleaf with their work.
A LaTeX template for typing exams using exam
package.
\begin
Discover why 18 million people worldwide trust Overleaf with their work.
\documentclass[addpoints,12pt]{exam}
%\documentclass[12pt,addpoints,answers]{exam} % To print with answers
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{fancybox}
\pagestyle{headandfoot}
\firstpageheadrule
\firstpageheader{Name:} { } {Numerical Analysis}
\firstpagefooter{}{Final Exam, Page \thepage\ of \numpages}
{}
\runningheader{Name:} { } {Numerical Analysis}
\runningfooter{}{Final Exam, Page \thepage\ of \numpages}
{}
\runningheadrule
\runningfootrule
%%%%% Cover page
\coverfirstpageheader{Taif University \\ Department of Mathematics \\ \& Statistics}{\includegraphics[scale=0.4]{logo11.jpg}}{Numerical Methods \\ Final Exam \\ Time: 3 Hours}
\runningheadrule
\runningfootrule
\onehalfspacing
\newcommand{\tf}[1][{}]{%
\fillin[#1][0.25in]%
}
\begin{document}
%\maketitle
\pointsinmargin % To print points in margin
\boxedpoints % or \bracketedpoints
\begin{coverpages}
\hrule
\hrule
\noindent
\begin{tabular}{@{}p{.55\textwidth}@{\hspace{2cm}}p{.30\textwidth}@{}}
Name:\enspace\hrulefill & University ID:\enspace\hrulefill
\end{tabular}
\noindent
\vspace{0.5cm}
\shadowbox{
\begin{minipage}{6.5in}
\centering
\underline{
\textbf{INSTRUCTIONS}
}
\begin{itemize}
\item Make sure to write your name and ID in the first page and every page thereafter.
\item The question booklet consists of \textbf{\totalnumpages \:
pages}. Make sure you have all of them.
\item Keep quite during the exam. For assistance, raise your hand and an invigilator will come to see you
\item Answer the questions in the spaces provided after each question. If you run out of room for an answer,
continue on the back of the page.
\item The mark of each question is printed next to it.
\item Keep in mind that possession or use of mobile phones or any other unauthorized electronic devices in the exam room is strictly prohibited.
\item Make sure you read and sign the \textbf{Declaration Of Academic Integrity} shown below.
\end{itemize}
\end{minipage}
}
\begin{center}
\gradetable[h][questions]
% Or use \gradetable[v][questions]
\end{center}
% optional: Uncomment the following if you want
\begin{center}
\fbox{\fbox{\parbox{6.5in}{{\centering
\textbf{\underline{Declaration of Academic Integrity} \\
By signing below, I pledge that the answers of this exam are my own work without the assistance of others or the usage of unauthorized material or information. \\
Signature:
\dotfill\hfill }}}}} \\
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%%
\end{coverpages}
\begin{questions}
\question Answer the following
\begin{parts}
\item Choose the correct answer of the following
\begin{parts}
\part[1] If $x = 2$ and $y = 5 $, then $x+y$ \\
\begin{oneparchoices}
\choice $\displaystyle 2$
\CorrectChoice $\displaystyle 7$
\choice $\displaystyle 21$
\choice $\displaystyle 1$
\end{oneparchoices}
\part[1] If $x = 12$ and $y = 5 $, then $x+y$ \\
\begin{oneparchoices}
\CorrectChoice $\displaystyle 17$ \\
\choice $\displaystyle 7$ \\
\choice $\displaystyle 21$ \\
\choice $\displaystyle 1$
\end{oneparchoices}
\part[2] Who invented the pencil
\begin{oneparcheckboxes}
\choice Me
\choice You
\choice They
\choice Him
\CorrectChoice Socrates
\end{oneparcheckboxes}
\end{parts}
\part[2] If $f(x) = \sin(x)$, then $f'(x) = $\fillin.
\part True or False
\begin{parts}
\part[2] \tf[T] The world is all that is the case.
\part[1] \tf[F] My favorite color is blue.
\end{parts}
\end{parts}
%\clearpage
\singlespacing
\question Let $\displaystyle f(x) = \sin(x) + x^2$
\begin{parts}
\part[4] Compute $\displaystyle \frac{df}{dx} $.\\
\fillwithdottedlines{1.5in}
%%%% To add solutions, add the following and uncomment the seconed line
%%%% in the document \documentclass[12pt,addpoints,answers]{exam} % To print with answers
\begin{solution}
$f'(x) = \cos(x) + 2 x $
\end{solution}
%%%%%%%%%%%%%%%%
\part[5] Compute $\displaystyle\int_0^1 f(x) \, dx$.\\
\fillwithdottedlines{1.5in}
\end{parts}
\question[10]
Describe the effect of error propagation on numerical results.\\
\fillwithdottedlines{2.8in}
\question
\begin{parts}
\part[3]
What do you do with $f(x) = x$?
\fillwithdottedlines{2.8in}
\part[3]
Is your answer different if $f(x) = \tan(x)$?
\fillwithdottedlines{1.9in}
\end{parts}
\question[8]
In no more than one paragraph, explain why the earth is round.
\makeemptybox{1in}
\question Answer the following
\begin{parts}
\part[1] \label{eqn1}
find $f(2.25)$.
\answerline
\part[1]\label{eqn2}
Approximate $f'(0)$.
\answerline
\part[1]\label{eqn3}
Approximate $\displaystyle \int_{1}^{5} f(x) \: \text{dx}$.
\answerline
\part[5] Redo questions \eqref{eqn1}, \eqref{eqn2} and \eqref{eqn3} with $f(1) = 4$ and $f(2) = 5$.
\fillwithdottedlines{1.2in}
\end{parts}
\end{questions}
\begin{center}
\fbox{\fbox{\parbox{5.5in}{\centering
Hope you all the best! \\
Dr. X Y Z, \quad \quad
Dr. M N T}}}
\end{center}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: