%\documentclass[addpoints]{exam}
\documentclass[addpoints, answers]{exam}
%& -job-name=XYZ

\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{cleveref}
\usepackage[siunitx, american]{circuitikz}
\usepackage{siunitx}
\usepackage{lastpage}
%\input{cedtcommands.tex}

\footer{}{\thepage/\pageref{LastPage}}{}
%\boxedpoints
\bracketedpoints
\pointsinrightmargin

%-------------------------------------------------------------
\begin{document}
%This code creates the text before the first question
%-------------------------------------------------------------------
\pagenumbering{arabic} \setcounter{page}{1}

\vspace{-10mm}
\begin{center}
\includegraphics[width=0.5\textwidth]{Logo-BW_-Wide.png}
\end{center}
\begin{center}\textbf{\LARGE{EE101 Spring 2021 Exam 1} }\end{center}
\begin{center}{Instructor: Dr. Abhijit Kshirsagar \\({username@domain.academic})}\end{center}
\small
\begin{center}
	%Date and Time
	March 16, 2020, 8am - 10am
\end{center}

\vspace{5mm}

\makebox[\textwidth]{\large Full Name (all caps):\hspace{2mm}\enspace\hrulefill}

\vspace{7mm}

\makebox[\textwidth]{\large Roll Number / ID (all caps):\enspace\hrulefill}

\vspace{5mm}

{
	\large
\textbf{Instructions:}
\normalsize
\begin{enumerate}
	\item Modify this text block to add all the instructions.
	\item The front page is designed to have just the instructions - questions begin on the next page.
	\item Put away all bags, books, notebooks, cellphones, laptops, tablets, smartwatches, etc.
	\item Only ONE A4 or letter sized crib sheet for formulae or notes is allowed.
	\item Scientific/programmable calculators are allowed.
	\item Write your answers clearly and legibly in the space provided.
	\item Points will be awarded for correct formulae, intermediate steps and working.
	\item Use the provided paper for rough work if needed.
	\item If any data are missing, make reasonable assumptions and state the same with justification.
	\item This exam booklet	 has a total of {\numquestions}~questions on \pageref{LastPage} pages.
	\item The exam consists of three sections worth 25 points, 25 points and 50 points respectively.
	\item Points for each question are indicated in square brackets in the right margin.
	\item For multiple choice questions, select the \textbf{best option} or \textbf{all correct answers}, as appropriate,
	and write your response in the space below each question, e.g. \textbf{A} or \textbf{A,B,D}
	\item For fill-in-the-blank questions write the answer in the corresponding blank space.	
\end{enumerate}
}
\normalsize

\clearpage
%-------------------------------------------------------------------

%Here, the questions begin
\begin{questions}
\fullwidth{\Large \textbf{Section 1: \pointsinrange{grsec1} Points}}
\begingradingrange{grsec1}
\input{section1}
\endgradingrange{grsec1}

%\clearpage
\fullwidth{\Large \textbf{Section 2: \pointsinrange{grsec2} Points}}
\begingradingrange{grsec2}
\input{section2}
\endgradingrange{grsec2}

\clearpage
\fullwidth{\Large \textbf{Section 3: \pointsinrange{grsec3} Points}}
\begingradingrange{grsec3}
\input{section3}
\endgradingrange{grsec3}

\end{questions}

\clearpage
\begin{center}
	\Large{\textbf{Do not write on this page.}}\\
	\vspace{10mm}
	\hrule
	\vspace{0.25in}
	
	
	\underline{Section 1}\\
	\vspace{5mm}
	\setlength{\doublerulesep}{0.25in}
	\multirowpartialgradetable{2}{grsec1}[questions]
	
	
	\vspace{0.25in}
	%\hrule
	\vspace{0.25in}
	
	\underline{Section 2}\\
	\vspace{5mm}	
	\multirowpartialgradetable{1}{grsec2}[questions]
	
	\vspace{0.25in}
	%\hrule
	\vspace{0.25in}
	
	\underline{Section 3}\\
		\vspace{5mm}
	\multirowpartialgradetable{1}{grsec3}[questions]
	
\end{center}
\cfoot{{\thepage/\pageref{LastPage}} \\ This exam was created with the `exam' class of \LaTeX}
\end{document}