\documentclass[a4paper]{article}

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

\usepackage[box,completemulti]{automultiplechoice}   
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\begin{document}

\onecopy{10}{    
\setcounter{figure}{0}
%%% beginning of the test sheet header:    

\noindent{\bf QCM  \hfill TEST}

\vspace*{.5cm}
\begin{minipage}{.4\linewidth}
\centering\large\bf Quiz\\ MEC3023F 28 Feb 2015\end{minipage}
\namefield{\fbox{    
                \begin{minipage}{.5\linewidth}
                  Firstname and lastname:

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

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

  No documents allowed. Approved calculators may be used. Any communication device (smartphone, smart watch, tablet, etc) must be switched off. 


  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

\begin{question}{StressUnits}    
  Which of the following is \emph{NOT} a unit of stress?
  \begin{choices}
    \correctchoice{$N.m$}
    \wrongchoice{$N.m^{-2}$}
    \wrongchoice{$Pa$}
    \wrongchoice{$kg.m^{-1}.s^{-2}$}
  \end{choices}
\end{question}

\begin{question}{MomentDiagram}    
Consider the beam with applied loads shown in Figure \AMCref{fig:BeamQ}. Which option represents the correct shear force and bending moment diagrams?\\
\begin{figure}[p]
 \centering
 \includegraphics[width=0.5\textwidth]{BeamQ}
 \caption{Beam with applied loads}
 \AMClabel{fig:BeamQ}
\end{figure}
\\
Answer options:
\begin{figure}[p]
 \begin{subfigure}
  \centering
  \includegraphics[width=0.3\textwidth]{BeamAnswerCor}
  \caption{A}
  \AMClabel{fig:BeamAnswerCor}
 \end{subfigure}
 \quad
\begin{subfigure}
  \centering
  \includegraphics[width=0.3\textwidth]{BeamAnswerWrong}
  \caption{B}
  \AMClabel{fig:BeamAnswerWrong}
 \end{subfigure}
\end{figure}


  \begin{choices}
    \correctchoice{\AMCref{BeamAnswerCor}} 
    \wrongchoice{\AMCref{BeamAnswerWrong}}
  \end{choices}
\end{question}



%\begin{questionmult}{pref}    
%  Among the following cities, which ones are french prefectures?
%  \begin{choices}
%    \correctchoice{Poitiers}
%    \wrongchoice{Sainte-Menehould}
%    \correctchoice{Avignon}
%  \end{choices}
%\end{questionmult}

\clearpage    
}
   

\end{document}
