\documentclass{article}
\usepackage{multicol}

\usepackage{automultiplechoice}
\usepackage{cleveref}

\begin{document}

\setdefaultgroupmode{cyclic}

\element{geography}{
  \begin{questionmult}{Ghana}\AMClabel{Ghana}\bareme{formula=(Geography*(NBC-NMC))}
    What is the capital of Ghana?
    \begin{choiceshoriz}
      \correctchoice{Accra}
      \wrongchoice{Addis Abeba}
      \wrongchoice{Ankara}
      \wrongchoice{Apia}
    \end{choiceshoriz}
  \end{questionmult}
}

\element{geography}{
  \begin{questionmult}{Thailand}\AMClabel{Thailand}\bareme{formula=(Geography*(NBC-NMC))}
    What is the capital of Thailand?
    \begin{choiceshoriz}
      \correctchoice{Bangkok}
      \wrongchoice{Banjul}
      \wrongchoice{Beijing}
      \wrongchoice{Beirut}
      \wrongchoice{Berlin}
    \end{choiceshoriz}
  \end{questionmult}
}

\element{geography}{
  \begin{questionmult}{Egypt}\AMClabel{Egypt}\bareme{formula=(Geography*(NBC-NMC))}
    What is the capital of Egypt?
    \begin{choices}
      \correctchoice{Cairo}
      \wrongchoice{Caracas}
      \wrongchoice{Cayenne}
      \wrongchoice{Chisinau}
      \wrongchoice{Conakry}
    \end{choices}
  \end{questionmult}
}

\element{geography}{
  \begin{questionmult}{Ireland}\AMClabel{Ireland}\bareme{formula=(Geography*(NBC-NMC))}
    What is the capital of Ireland?
    \begin{multicols}{3}
      \begin{choices}
        \correctchoice{Dublin}
        \wrongchoice{Dili}
        \wrongchoice{Djibouti}
        \wrongchoice{Doha}
        \wrongchoice{Dakar}
        \wrongchoice{Dhaka}
      \end{choices}
    \end{multicols}
  \end{questionmult}
}

\element{history}{
  \begin{questionmult}{1901}\AMClabel{1901}\bareme{formula=(History*(NBC-NMC))}
    Which of the following events are taking place during the year
    1901?
    \begin{choices}
      \correctchoice{Funeral of Queen Victoria in London}
      \correctchoice{Official end of the Caste War of Yucat\'an}
      \wrongchoice{King George of Greece becomes absolute monarch of Crete}
      \wrongchoice{The first line of the Paris M\'etro is opened}
    \end{choices}
  \end{questionmult}
}

\element{history}{
  \begin{questionmult}{1850}\AMClabel{1850}\bareme{formula=(History*(NBC-NMC))}
    Which of the following events are taking place during the year
    1850?
    \begin{choices}
      \correctchoice{American Express is founded by Henry Wells \& William Fargo}
      \wrongchoice{Napoleon Bonaparte crosses the Alps and invades Italy}
      \wrongchoice{Kwang-su becomes emperor of China}
      \wrongchoice{First horse-drawn omnibuses established in London}
    \end{choices}
  \end{questionmult}
}

\element{history}{
  \begin{questionmult}{1971}\AMClabel{1971}\bareme{formula=(History*(NBC-NMC))}
    Which of the following events are taking place during the year
    1971?
    \begin{choices}
      \correctchoice{Apollo 14 lands on the Moon}
      \correctchoice{The Soviet Union launches Salyut 1}
      \correctchoice{Death of Louis Armstrong}
      \wrongchoice{The first commercial Concorde flight takes off}
    \end{choices}
  \end{questionmult}
}


\onecopy{3}{

\noindent{\bf AMC  \hfill SAMPLE TEST}

%\vspace{3ex}

{\AMCquestionNumberfalse
\def\AMCbeginQuestion##1##2{}
\begin{questionmult}{Choice}

You have to answer to one of the   two sections (geography or  history) not the both. 

Mark your choice below

\begin{choiceshoriz}[o]\bareme{formula=0}
  \correctchoice{geography: \cref{\AMCstudentlabel{Ghana},\AMCstudentlabel{Thailand},%
  \AMCstudentlabel{Egypt},\AMCstudentlabel{Ireland}}}
  \bareme{setglobal.History=0,setglobal.Geography=1}
  
    \correctchoice{history: \cref{\AMCstudentlabel{1901},\AMCstudentlabel{1850},\AMCstudentlabel{1971}}}
    \bareme{setglobal.History=1,setglobal.Geography=0}
 \end{choiceshoriz}
\end{questionmult}
}

\vspace{3ex}

\insertgroup{geography}

\insertgroup{history}

}
\end{document}
