\documentclass[a4paper]{article}

\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{ifthen}
\usepackage{listings,color}
\usepackage{multicol}
\usepackage[box,completemulti,separateanswersheet,noshuffle,noshufflegroups]{automultiplechoice}

\def\multiSymbole{}

\geometry{hmargin=2cm,headheight=2cm,headsep=.3cm,footskip=1cm,top=3.5cm,bottom=2.5cm}

\begin{document}

\usetikzlibrary{shapes.geometric, arrows, decorations.pathmorphing}
\lstloadlanguages{vhdl}
\lstset{language=vhdl,showspaces=false,showtabs=false,basicstyle=\tiny,captionpos=b,xleftmargin=4em,,showstringspaces=false,breaklines=true,keywordstyle=\color{blue},commentstyle=\color{red},tabsize=2,numbers=left}

%\AMCrandomseed{1468896} % [1 ... 4194303]

\AMCtext{none}{Don't know}

\setdefaultgroupmode{withoutreplacement}

\newcounter{AMCquestionsave}

\def\AMCformQuestion#1{\ifnum#1<0\else\textbf{Question #1:}\fi}

\newcommand\questionCBM[3]{%
  % arguments: id, question, answers bloc
  \begin{question}{#1[C]}
    \QuestionIndicative%
    #2
    \def\AMCanswer##1##2{}%
    \begin{choicescustom}[o]
      \wrongchoice[L]{low }\scoring{0,setglobal.SCOREOK=1,setglobal.SCOREWRONG=0}
      \wrongchoice[M]{medium }\scoring{1,setglobal.SCOREOK=2,setglobal.SCOREWRONG=-2}
      \correctchoice[H]{high }\scoring{2,setglobal.SCOREOK=3,setglobal.SCOREWRONG=-6}
    \end{choicescustom}
  \end{question}
  {\AMCquestionNumberfalse%
    \def\AMCbeginQuestion##1##2{}%
    \def\AMCbeforeQuestion{}%
    \setcounter{AMCquestionsave}{\value{AMCquestionaff}}%
    \setcounter{AMCquestionaff}{-\value{AMCquestionaff}}%
    \begin{questionmult}{#1[Q]}%
      \scoring{formula=((NMC>0)?(SCOREWRONG):((NBC>0)?SCOREOK:0)),MAX=3}
      #3
    \end{questionmult}%
    \setcounter{AMCquestionaff}{\value{AMCquestionsave}}%
  }%
}

\element{qs}{
  \questionCBM{Q1}{
    Q1
  }{
    \begin{choiceshoriz}
      \correctchoice{C}
      \wrongchoice{W}
      \wrongchoice{W}
      \wrongchoice{W}
    \end{choiceshoriz}
  }
}

\element{qs}{
  \questionCBM{Q2}{
    Q2
  }{
    \begin{choiceshoriz}
      \correctchoice{C}
      \wrongchoice{W}
      \wrongchoice{W}
      \wrongchoice{W}
    \end{choiceshoriz}
  }
}

\element{qs}{
  \questionCBM{Q3}{
    Q3
  }{
    \begin{choiceshoriz}
      \correctchoice{C}
      \wrongchoice{W}
      \wrongchoice{W}
      \wrongchoice{W}
    \end{choiceshoriz}
  }
}

\element{qs}{
  \questionCBM{Q4}{
    Q4
  }{
    \begin{choiceshoriz}
      \correctchoice{C}
      \wrongchoice{W}
      \wrongchoice{W}
      \wrongchoice{W}
    \end{choiceshoriz}
  }
}

\element{qs}{
  \questionCBM{Q5}{
    Q5
  }{
    \begin{choiceshoriz}
      \correctchoice{C}
      \wrongchoice{W}
      \wrongchoice{W}
      \wrongchoice{W}
    \end{choiceshoriz}
  }
}

\element{qs}{
  \questionCBM{Q6}{
    Q6
  }{
    \begin{choiceshoriz}
      \correctchoice{C}
      \wrongchoice{W}
      \wrongchoice{W}
      \wrongchoice{W}
    \end{choiceshoriz}
  }
}

\element{qs}{
  \questionCBM{Q7}{
    Q7
  }{
    \begin{choiceshoriz}
      \correctchoice{C}
      \wrongchoice{W}
      \wrongchoice{W}
      \wrongchoice{W}
    \end{choiceshoriz}
  }
}

\element{qs}{
  \questionCBM{Q8}{
    Q8
  }{
    \begin{choiceshoriz}
      \correctchoice{C}
      \wrongchoice{W}
      \wrongchoice{W}
      \wrongchoice{W}
    \end{choiceshoriz}
  }
}

\element{qs}{
  \questionCBM{Q9}{
    Q9
  }{
    \begin{choiceshoriz}
      \correctchoice{C}
      \wrongchoice{W}
      \wrongchoice{W}
      \wrongchoice{W}
    \end{choiceshoriz}
  }
}

\element{qs}{
  \questionCBM{Q10}{
    Q10
  }{
    \begin{choiceshoriz}
      \correctchoice{C}
      \wrongchoice{W}
      \wrongchoice{W}
      \wrongchoice{W}
    \end{choiceshoriz}
  }
}

\onecopy{1}{

  \begin{center}
    \LARGE\bf Title
  \end{center}

  \insertgroup{qs}

  \clearpage
  \AMCformBegin

  \begin{center}
    \LARGE\bf Form
  \end{center}

  \AMCform
  
}

\end{document}
