\documentclass{article}

\usepackage[box,completemulti]{automultiplechoice}    

\usepackage{tikz}% for the foreach


\newcommand{\customheader}{%
\fancyhead[C]{\begin{minipage}{0.3\textwidth}\rule{2cm}{2cm}\end{minipage}\hspace{0.2\textwidth} \begin{minipage}{0.3\textwidth}\AMCIDBoxesABC\end{minipage}}%
}

\begin{document}
  \onecopy{1}{%
    \customheader%
    %%% beginning of the test sheet header:    
    \noindent{\bf QCM  \hfill TEST}
    
    \vspace*{.5cm}
    \begin{minipage}{.4\linewidth}
      \centering\large\bf Test\\ Examination on Jan., 1st, 2008\end{minipage}
    \namefield{\fbox{    
        \begin{minipage}{.5\linewidth}
          Firstname and lastname:
          
          \vspace*{.5cm}\dotfill
          \vspace*{1mm}
        \end{minipage}
    }}
    
    %%% end of the header
    \foreach \x in {1,...,20}{
    \begin{question}{prez\x}    
      Among the following persons, which one has ever been a President of the French Republic?
      \begin{choices}
        \correctchoice{René Coty}
        \wrongchoice{Alain Prost}
        \wrongchoice{Marcel Proust}
        \wrongchoice{Claude Monet}
      \end{choices}
    \end{question}}
  }
\end{document}
