\documentclass[a4paper]{article}

\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{multicol}
\usepackage{tikz}

\usepackage[box,completemulti,separateanswersheet,noshuffle,noshufflegroups]{automultiplechoice}    


% \def\AMCchoiceLabel#1{\color{black!40}\small\Alph{#1}\normalsize}
% \def\AMCcodeLabel#1{\color{black!40}\small\alph{#1}\normalsize}
% \AMCcodeHspace=.5em
% \AMCcodeVspace=.2em
% \AMCcodeBoxSep=.1em

\scoringDefaultM{mz=1}

\def\AMCchoiceLabelFormat#1{{\color{black!30}\small #1}}
\def\AMCchoiceLabel#1{\alph{#1}}

\def\threedigits#1{% 
   \ifnum#1<100 0\fi 
   \ifnum#1<10 0\fi 
   \number#1}

% \makeatletter\AMC@ordretrue\makeatother

\newcommand{\ansA}{
   \begin{choices}
     \correctchoice{Correct Option}
     \wrongchoice{Wrong Choice-1}
     \wrongchoice{Wrong Choice-2}
     \wrongchoice{Wrong Choice-3}
   \end{choices}
}

\newcommand{\ansB}{
   \begin{choices}
     \wrongchoice{Wrong Choice-1}
     \correctchoice{Correct Option}
     \wrongchoice{Wrong Choice-2}
     \wrongchoice{Wrong Choice-3}
   \end{choices}
}

\newcommand{\ansC}{
   \begin{choices}
     \wrongchoice{Wrong Choice-1}
     \wrongchoice{Wrong Choice-2}
     \correctchoice{Correct Option}
     \wrongchoice{Wrong Choice-3}
   \end{choices}
}

\newcommand{\ansD}{
   \begin{choices}
     \wrongchoice{Wrong Choice-1}
     \wrongchoice{Wrong Choice-2}
     \wrongchoice{Wrong Choice-3}
     \correctchoice{Correct Option}
   \end{choices}
}


\begin{document}

\AMCrandomseed{1237893}

% \def\AMCformQuestion#1{{\sc Q. #1:}}    
\def\AMCformQuestion#1{\par\vspace{0.15\AMCformVSpace}\noindent\textsf{Q. }\ifthenelse{#1 < 10}{\phantom{1}#1.}{#1.}}

\setdefaultgroupmode{withoutreplacement}

%\input{questions}

\element{general}{ \begin{question}{A} A \ansA \end{question} }
\element{general}{ \begin{question}{B} B \ansB \end{question} }
\element{general}{ \begin{question}{C} C \ansC \end{question} }


\onecopy{1}{

   %%% beginning of the test sheet header:

   \noindent{\bf QCM  \hfill Final Exam}

   \vspace*{.5cm}

   \begin{minipage}{.4\linewidth}
     \centering\large\bf Final Examination
   \end{minipage}

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

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

     Questions using the sign \multiSymbole{} may have
     zero, one or several correct answers.  Other questions have a single correct answer.

     Negative points may be attributed to \emph{very
        bad} answers.

   \end{center}
   \vspace{1ex}

   %%% end of the header

   \insertgroup{general}

   \AMCcleardoublepage    

   % \AMCaddpagesto{3} 

   \AMCboxStyle{shape=oval,size=2.5ex,down=.4ex,rule=.5pt,outsidesep=.1em,color=black}

   \AMCformBegin
   % \includegraphics[width=0.85\textwidth]{Banner}

   \begin{center}
     {\large Final Examination}
     
     {\Large (Answer Sheet)}
   \end{center}
   \vskip5mm
   \noindent
   Candidate's signature:\rule{0.25\linewidth}{0.1pt}
   \hfill
   Invigilator's signature:\rule{0.25\linewidth}{0.1pt}
     \vskip3mm
   
     {\setlength{\parindent}{0pt}
        \hspace*{\fill}
      % \hbox{
         %\begin{minipage}{0.4\linewidth}
         %\end{minipage}
         % }
      \hbox{
         \begin{minipage}{0.4\linewidth}
           Please encode your registration number, and
           write your name below.
         \end{minipage}
         \qquad
         \begin{minipage}{0.4\linewidth}
           \AMCcodeH{regno}{4}%\hspace*{\fill}
         \end{minipage}
      }
        \hspace*{\fill}
      % \begin{minipage}[b]{6.5cm}
      %   $\longleftarrow{}$
      %   \hspace{0pt plus 1cm}
      \vspace{3ex}
      \hfill

      \namefield{
         \hbox{
            \begin{minipage}{\linewidth}
              Write your name (in CAPITALS):
              \vspace*{.5cm}\dotfill\newline
              \vspace*{.5cm}
              \dotfill
              % \vspace*{1mm}
            \end{minipage}
         }}
      % \hfill\vspace{5ex}
      % \end{minipage}
      % \hspace*{\fill}
   }

   \vskip-3mm
   %%% beginning of the answer sheet header

   % {\large\bf Answer sheet:}
   % \hfill \namefield{\fbox{    
   % \begin{minipage}{.5\linewidth}
   %   Firstname and lastname:

   %   \vspace*{.5cm}\dotfill
   %   \vspace*{1mm}
   % \end{minipage}
   % }}

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

   %%% end of the answer sheet header


   \begin{multicols}{3}
     \AMCform
   \end{multicols}
   % \AMCaddpagesto{5} 

}

\end{document}

