\documentclass{article}
\usepackage{xltxtra}
\usepackage[bloc,separateanswersheet]{automultiplechoice}
\usepackage{multicol}
\setmainfont{Linux Libertine O}
\begin{document}
\def\AMCmakeTitle#1{\par\noindent\hrule\vspace{1ex}{\hspace*{\fill}\Large\bf #1\hspace*{\fill}}\vspace{1ex}\par\noindent\hrule\par\vspace{1ex}}
\AMCrandomseed{1527384}
\def\AMCbeginQuestion#1#2{\noindent{\bf Q #1} #2\hspace{1em}}
\def\AMCformQuestion#1{{\bf Q #1 :}}
\element{grA}{
\begin{question}{Q001}
Q
\begin{choiceshoriz}[o]
\correctchoice{}
\wrongchoice{}
\wrongchoice{}
\wrongchoice{}
\end{choiceshoriz}
\end{question}
}
\def\insertPlainGroupgrA{\insertgroup{grA}}
\onecopy{5}{
\vspace{4mm}\noindent\hrule


\vspace{2ex}

\insertPlainGroupgrA

\AMCcleardoublepage

\AMCformBegin
\begin{center}\bf\large AMC Testing\end{center}

{\setlength{\parindent}{0pt}\hspace*{\fill}\AMCcode{student.number}{10}\hspace*{\fill}\begin{minipage}[b]{5.8cm}$\longleftarrow{}$\hspace{0pt plus 1cm}Please enter your mobile number, and write your name in the box below.\vspace{3ex}

\hfill\namefield{\fbox{\begin{minipage}{.9\linewidth}Name

\vspace*{.5em}\dotfill

\vspace*{.5em}\dotfill
\vspace*{1mm}
\end{minipage}
}}\hfill\vspace{5ex}\end{minipage}\hspace*{\fill}

}\vspace{4mm}
\vspace{4mm}\noindent\hrule


\begin{multicols}{3}
\AMCform
\end{multicols}


}
\end{document}
