\documentclass[a4paper]{article}

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

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

%%% preparation of the groups

\element{Part1}{
  \begin{question}{Q1}
Two capacitors of values $2 \mu F$ each as connected in series. The equivalent capacitance in $\mu F$ is
    \begin{choices}
      \correctchoice{1}
      \wrongchoice{0.5}
      \wrongchoice{2}
      \wrongchoice{4}
	\wrongchoice{8}
    \end{choices}
  \end{question}
}

\element{Part1}{
  \begin{question}{Q2}
A resistor has a value of $50$ M $\Omega$. The second band is black. The third band will be
    \begin{choices}
     \correctchoice{Blue}
    \wrongchoice{Orange}
    \wrongchoice{Voilet}
	\wrongchoice{Red}
    \end{choices}
  \end{question}
}

\element{Part1}{
  \begin{question}{Q3}
A voltage source $V = 10$ V, resistors $R_1$ and $R_2 = 20$ $ \Omega$ are in all series. If the voltage drop across the $R_1$ resistor is 2.5 V then $R_1$ in $\Omega$ is
    \begin{choiceshoriz}
 %\begin{choices}
     \wrongchoice{3.33}
    \wrongchoice{5}
    \wrongchoice{7.5}
    \wrongchoice{10}
    \correctchoice{6.67}
    \end{choiceshoriz}
  \end{question}
}

\element{Part1}{
  \begin{question}{Q4}
    A voltage source $V_s$ is connected in series with two resistors $R_1=1$ $\Omega$ and $R_2=2$ $\Omega$. If voltage drop across $R_1$ is $1$ V then $V_s$ in V is

    \begin{choices}
      \correctchoice{3}
      \wrongchoice{12}
      \wrongchoice{1.2}
	\wrongchoice{8}
	\wrongchoice{0}

    \end{choices}
  \end{question}
}

\element{Part1}{
  \begin{question}{Q5}
    For the waveform $y(t) = 10 \sin(\pi) + 5 \cos(\pi)$, the DC offset is

    \begin{choices}
      \correctchoice{-5}
      \wrongchoice{12}
      \wrongchoice{15}
	\wrongchoice{11}
	\wrongchoice{0}

    \end{choices}
  \end{question}
}

\element{Part1}{
  \begin{question}{Q6}
    Consider two resistances, $R_1 = 5$ $\Omega$ and $R_2 = 10$ $\Omega$. The two resistors when connected in series, have an effective resistance $R_{series}$ and when connected in parallel, have an effective resistance $R_{parallel}$. Indicate all true statements. 

   \begin{choices}
      \correctchoice{Two options are true}
      \wrongchoice{$R_{series} > R_1$}
      \wrongchoice{$R_2 > R_{parallel}$ }
	\wrongchoice{$R_{parallel}>R_{series}$ }
	\wrongchoice{Three options are true}

    \end{choices}
  \end{question}
}

\element{Part1}{
  \begin{question}{Q7}
    Consider the breadboard below. Indicate the true statement

    \begin{choices}
     \correctchoice{Two options are true}
      \wrongchoice{Holes shown by the blue vertical box denoted by a are all connected}
     \wrongchoice{Holes shown by the red dashed line denoted by b are all connected}
	\wrongchoice{Holes shown by the pink vertical line denoted by c are all connected }
	\wrongchoice{Three options are true}
   \end{choices}
\begin{minipage}{0.5\textwidth}
\includegraphics[width=0.75\textwidth]{breadboard.pdf}
\end{minipage}
  \end{question}
}

\element{Part1}{
  \begin{question}{Q8}
    In the circuit shown if $Va=10$ V and $Vb=5$ V then $V_{out}$ in V equals

    \begin{choices}
     \correctchoice{Two options are true}
      \wrongchoice{$R_{series} > R_1$}
     \wrongchoice{$R_2 > R_{parallel}$ }
	\wrongchoice{$R_{parallel}>R_{series}$ }
	\wrongchoice{Three options are true}
   \end{choices}
\begin{minipage}{0.5\textwidth}
\includegraphics[width=0.75\textwidth]{resistor_circuit1.png}
\end{minipage}
  \end{question}
}

\element{Part1}{
  \begin{question}{Q9}
A Light Emitting Diode (LED) is connected in series with a resistor of $100 \Omega$ and a battery of $5 V$. The LED is forward-biased in the circuit with a voltage drop of $1V$. The current flowing in the circuit in A is

   \begin{choices}
      \correctchoice{0.04}
      \wrongchoice{0.02}
      \wrongchoice{0.05 }
	\wrongchoice{0.1}
	\wrongchoice{None of these options are true}

    \end{choices}
  \end{question}
}

\element{Part1}{
  \begin{question}{Q10}
For the LM 7815 voltage regulator, the output voltage in V is

   \begin{choices}
      \correctchoice{15}
      \wrongchoice{5}
      \wrongchoice{7}
	\wrongchoice{8}
	\wrongchoice{None of these options are true}

    \end{choices}
  \end{question}
}

\element{Part1}{
  \begin{question}{Q11}
Which of the falling is NOT necessarily true for a bipolar junction transistor

   \begin{choices}
      \correctchoice{$I_C = \beta I_B$}
      \wrongchoice{$I_E = I_C + I_B$}
      \wrongchoice{$V_{BE} = V_B - V_E $}
	\wrongchoice{$V_{CE} = V_C - V_E $}
	\wrongchoice{All are true}

    \end{choices}
  \end{question}
}

%%% copies

\onecopy{1}{

%%% beginning of the test sheet header:
\begin{center}
{
\Large ME 4543: Mechatornics}
{\\Department of Mechanical Engineering\\Mock Exam\\}
\end{center}

{
\begin{center}\em

Useful information:

\end{center}

(1) There are 4 questions. 
(2) Each question has only 1 correct answer. Each question is worth 1 point and there is no negative marking. 
(3) Cellphones, laptops, tablets and other electronics except calculators should be shut down. Only calculators are allowed.
(4) Darken the appropriate box next to the options entirely. Your answers will be graded by a computer so it is important that you darken the bubble entirely and do not write anything near the bubbles or options.
NOTE: The actual exam will have 20 questions worth 20 points.

\
}
\begin{center}
\namefield{\fbox{    
                \begin{minipage}{.5\linewidth}
                  Firstname and Lastname:

                  \vspace*{.5cm}\dotfill
                  \vspace*{1mm}
                \end{minipage}
         }}
\end{center}
%\begin{minipage}{.4\linewidth}
  %\centering\large\bf Mechatronics\\ Examination on Jan. 1st, 2008
%\end{minipage}
%%% end of the header

\begin{center}
  \hrule\vspace{2mm}
  \bf\Large Part 1
  \vspace{1mm}\hrule
\end{center}

\shufflegroup{Part1}
\insertgroup{Part1}

%%\begin{center}
  %%\hrule\vspace{2mm}
  %%\bf\Large Part 2
  %%\vspace{2mm}\hrule
%%\end{center}

%\shufflegroup{Mechatronics}
%\insertgroup{Mechatronics}

\clearpage

}

\end{document}
