Debian Codegraph @

texmf-dist/doc/latex/probsoln/samples/prob-mchoice.tex

raw
1 % This file is public domain
2 %
3 % These problems are for multiple choice questions
4 \newproblem{mc:prod}{%
5 Which of the following is the derivative of $x\sin(x)$?
6 (Circle the correct answer.)
7 \ifthenelse{\boolean{showanswers}}{}%
8 {\begin{description}
9 \item[A] $\sin(x)$
10 \item[B] $x\cos(x)$
11 \item[C] $\sin(x) + x\cos(x)$
12 \end{description}
13 }}{%
14 \begin{description}
15 \item[A] $\sin(x)$
16 \item[B] $x\cos(x)$
17 \item[\textcircled{C}] $\sin(x) + x\cos(x)$ (product rule).
18 \end{description}
19 }
20
21 \newproblem{mc:quot}{%
22 Which of the following is the derivative of $\frac{\sin(x)}{x}$?
23 (Circle the correct answer.)
24 \ifthenelse{\boolean{showanswers}}{}%
25 {\begin{description}
26 \item[A] $\sin(x)$
27 \item[B] $\cos(x)$
28 \item[C] $\frac{\cos(x)x-\sin(x)}{x^2}$
29 \end{description}
30 }}{%
31 \begin{description}
32 \item[A] $\sin(x)$
33 \item[B] $\cos(x)$
34 \item[\textcircled{C}] $\frac{\cos(x)x-\sin(x)}{x^2}$
35 (quotient rule)
36 \end{description}
37 }