\documentclass[a4paper,beginany]{article}

\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[utf8x]{inputenc}    
\usepackage[T1]{fontenc}
\usepackage{fp}
\usepackage{multicol}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.12} 
\usepackage[box,completemulti,automarks,separateanswersheet]{automultiplechoice}    
\def\naught {\ensuremath{{}_o}}
\def\randomSeed{ 93151203 }

\begin{document}

\AMCrandomseed{\randomSeed}
\pgfmathsetseed{\randomSeed}
%\FPseed \randomSeed
 
\def\AMCformQuestion#1{\vspace{\AMCformVSpace}\par {\sc Question #1:} } 

\AMCboxDimensions{shape=oval, width=4ex, height=2.5ex}		% ovals, golden ratio
\def\defaultScoringM{\scoring{haut=3}}	% 3 pt max, -1 for each wrong answer
\def\defaultScoringS{\scoring{mz=2}}	% 2 or nothing.
\def\calcQuestion{\ensuremath{\blacksquare}}

\AMCinterIrep=0.125cm % spacing between answers
\AMCinterIquest=0.5cm % spacing between questions

\input{quizquestions/minimal}

\input{quizquestions/feedback}

\onecopy{4}{    

%%% beginning of the test sheet header:    

\noindent{\bf Minimal Test  \hfill Quiz 1}

%\vspace*{.5cm}
%\begin{minipage}{.4\linewidth}
%  \centering\large\bf Test\\ Examination on Jan. 1st, 2008
%\end{minipage}

\begin{center}\em
Duration : 20 minutes.

  No documents allowed. The use of electronic devices is forbidden.

  Questions using the sign \multiSymbole{} may have zero, one or several correct answers and are worth 3 points. Questions using the sign \calcQuestion{} require some calculation and are worth up to 5 points. Other questions have a single correct answer and are worth 2 points.

\end{center}\vspace{1ex}

%%% end of the header

\cleargroup{quizMinimal}

\shufflegroup{minimalTheory}
\shufflegroup{minimalOrbits}
\shufflegroup{minimalSkill}

\copygroup{minimalTheory}{quizMinimal}
\copygroup[1]{minimalOrbits}{quizMinimal}
\copygroup[1]{minimalSkill}{quizMinimal}

\insertGraphquestionMinimal
\shufflegroup{quizMinimal}
\insertgroup{quizMinimal}

\vspace{1cm}
There is no 'right` answer for the following questions, therefore no points will be awarded.
\vspace{1cm}

\insertgroup{feedback}

\AMCcleardoublepage  

\AMCformBegin    

%%% beginning of the answer sheet header

{\large\bf Answer sheet:}


\vspace{3ex}
{\setlength{\parindent}{0pt}\hspace*{\fill}\AMCcode{StudentNummer}{7}\hspace*{\fill}
\begin{minipage}[b]{7.5cm}
$\longleftarrow{}$\hspace{0pt plus 1cm} please encode your student number to the left, and write your first and last name in the box below.

\vspace{3ex}

\hfill \namefield{\fbox{    
    \begin{minipage}{\linewidth}
      first and last name: 
      \vspace*{2cm}\par
      \noindent\dotfill
      \vspace*{2mm}
    \end{minipage}
  }}

	\hfill\vspace{5ex}
\end{minipage}\hspace*{\fill}
}

\begin{center}
  \bf\em Answers must be given exclusively on this sheet: answers given on the other sheets will be ignored. \emph{Please fill the boxes completely.}
\end{center}

%%% end of the answer sheet header

\AMCform    

\clearpage

}

\end{document}
