Debian Codegraph @

texmf-dist/doc/latex/webquiz/examples/quiz-page.tex

raw
1 \documentclass[]{webquiz}
2 \BreadCrumbs{quizindex | title}
3 \DeclareMathOperator{\cis}{cis}
4 \newcommand{\R}{\mathbb R}
5 \newcommand{\C}{\mathbb C}
6 \usepackage{pst-all}
7
8 \title{Quiz 1: Numbers and sets}
9
10 \begin{document}
11
12 \begin{question}
13 Which of the following are correct ways of writing the set
14 \[ A=\{x \in \mathbb{R} \mid -3 < x \leq -1 \text{ or } x\geq 0\} ?\]
15 \begin{choice}[columns=2]
16 \incorrect $(-3,\infty)$
17 \feedback The interval $(-3,\infty)$ includes the real numbers
18 between $-1$ and $0$, which do not belong to $A$.
19
20 \incorrect $[-3,\infty)$
21 \feedback The interval $[-3,\infty)$ includes $-3$, and
22 the real numbers between $-1$ and $0$, which do not belong to $A$.
23
24 \incorrect $[-3,-1]\cap[0,\infty)$
25 \feedback The interval $[-3,-1]\cap[0,\infty)$ is the empty set
26 $\emptyset$. As $A$ is not empty (for example, $A$ includes
27 $-1$), this option cannot be correct.
28
29 \incorrect $(-3,-1)\cup[0,\infty)$
30 \feedback The interval $-1$ is not in $(-3,-1)\cup[0,\infty)$,
31 but $-1$ is in $A$.
32
33 \correct $(-3,-1]\cup[0,\infty)$
34
35 \end{choice}
36 \end{question}
37
38 %%%% 2
39 \begin{question}
40 What is another way of writing the set
41 \[B= \{x \in {\mathbb R}\ |\ |x-3|<2 \}\ \rm{?}\]
42 \begin{choice}[columns=2]
43 \incorrect $(2,3]$
44 \feedback For example, $4$ belongs to $B$ but is not in $(2,3]$.
45
46 \incorrect $[2,4]$
47 \feedback For example, $1.5$ belongs to $B$ but is not in $[2,4]$.
48
49 \correct $(1,5)$
50
51 \feedback $B$ is the set of all points whose distance from 3 on the
52 number line is less than 2. \\
53 The solution to $|x-3|<2$ is $1<x<5$.
54
55 \incorrect $[1,5]$
56 \feedback Neither $1$ nor $5$ belong to $B$, but both $1$ and $5$ belong to $[1,5]$.
57
58 \incorrect $[2,3)$
59 \feedback For example, $4$ belongs to $B$ but is not in $[2,3)$.
60
61 \end{choice}
62 \end{question}
63
64
65 %%%%%%%%%% 3
66 \begin{question}
67 If $A=\{7,8,9,10\}$ and $B=\{5,6,7,8\}$ then $(A\backslash
68 B)\cup(B\backslash A)$ is
69 \begin{choice}[columns=2]
70 \incorrect $\{5,6,7,8,9,10\}$
71
72 \correct $\{5,6,9,10\}$
73
74 \feedback $A\backslash B=\{9,10\}$ and $B\backslash A=\{5,6\}$ so
75 $(A\backslash B)\cup(B\backslash A)=\{5,6,9,10\}$.
76
77 \incorrect $\emptyset$, the empty set.
78
79 \incorrect $\{7,8\}$
80
81 \incorrect None of the above.
82
83 \end{choice}
84 \end{question}
85
86 %%%%%%%%%%%%%% 4
87 \begin{question}
88 The set \(\{0,1,\pm\sqrt{-1},\pi,12\}\) is a subset of
89 \begin{choice}[columns=2]
90 \incorrect $\mathbb N$
91 \feedback The number \(\pi\) is not a natural number.
92
93 \incorrect $\mathbb Z$
94 \feedback The number \(\pi\) is not an integer.
95
96 \incorrect $\mathbb Q$
97 \feedback The number \(\pi\) is not a rational number.
98
99 \incorrect $\mathbb R$
100 \feedback \(\sqrt{-1}\) is not real.
101
102 \correct $\mathbb C$
103 \feedback Since \(\pm\sqrt{-1}\) denotes the two imaginary numbers $i$ and $-i$, the given set cannot be
104 in any of the sets $\mathbb{N,Z,Q}\ \rm{or}\ \mathbb{R}$. \\
105 Hence the
106 right answer must be ${\mathbb C}$ which contains all imaginary
107 numbers.
108
109 \end{choice}
110 \end{question}
111
112 %%%%%%%%%% 5
113 \begin{question}
114 Which of the following alternatives is the best feedback to `Solve
115 $x^{2}-3x+4=0$ over $\mathbb{C}$'.
116 \begin{choice}[columns=2]
117 \incorrect There are no real solutions.
118 \feedback As the question asks us to solve the equation over $\mathbb C$ (that is, to find all solutions belonging to the set of complex numbers), this is not the best feedback.
119
120 \incorrect $x=1,4$
121
122 \incorrect \(x=\dfrac{3\pm\sqrt{7}}{2}\)
123
124 \correct \(x=\dfrac{3\pm i\sqrt{7}}{2}\)
125
126 \feedback Using the quadratic formula,
127 \(x =\dfrac{3\pm\sqrt{9-16}}{2} = \dfrac{3\pm\sqrt{-7}}{2}\).
128
129
130 \incorrect None of the above is correct.
131 \end{choice}
132 \end{question}
133
134 %%%%%%% 6
135 \begin{question}
136 If $z=9+3i$ and $w=2-i$ then $z+w$ equals
137 \begin{choice}[columns=2]
138 \incorrect $9-i$
139
140 \correct $11+2i$
141 \feedback $z+w=(9+3i)+(2-i)=(9+2)+(3-1)i=11+2i$.
142
143 \incorrect $6+3i$
144
145 \incorrect $8$
146
147 \incorrect None of the above
148
149 \end{choice}
150 \end{question}
151
152 %%%%%%% 7
153
154 \begin{question}
155 If $w=2-i$ then $\overline{w}$ equals
156 \begin{choice}[columns=2]
157 \incorrect $2-i$
158
159 \incorrect $2$
160
161 \correct $2+i$
162
163 \feedback
164 $\overline{w}=\overline{2-i}=2+i$.
165
166 \incorrect $-2+i$
167
168 \incorrect None of the above
169 \end{choice}
170 \end{question}
171
172 %%%%%%%%% 8
173 \begin{question}
174 If $p=9+3i$ and $q=2-i$ then $p\overline{q}$ equals
175 \begin{choice}[columns=2]
176
177 \correct $15+15i$
178
179 \feedback
180 $p\overline{q}=(9+3i)\overline{(2-i)}$ \\
181 $=(9+3i)(2+i)= (18-3)+(6+9)i$\\
182 $=15+15i$.
183
184 \incorrect $21+15i$
185
186 \incorrect $18+3i$
187
188 \incorrect $1-i$
189
190 \incorrect None of the above
191
192 \end{choice}
193 \end{question}
194
195
196 %%%%%%%%% 9
197 \begin{question}
198 If $z=9+3i$ and $w=2-i$ then $\dfrac{z}{w}$ equals
199 \begin{choice}[columns=2]
200 \incorrect $15+15i$
201
202 \incorrect $6+3i$
203
204 \incorrect $12+15i$
205
206 \incorrect $3-3i$
207
208 \correct None of the above
209
210 \feedback
211 \(\dfrac{z}{w}=\dfrac{9+3i}{2-i}
212 =\dfrac{9+3i}{2-i}\times \dfrac{2+i}{2+i}
213 =\dfrac{15+15i}{5}=3+3i\).
214 \end{choice}
215 \end{question}
216
217 %%%%%%%%%% 10
218 \begin{question}
219 The shaded region in the graph
220 \begin{center}\begin{pspicture}(-3,-1.5)(3,4)
221 \pscircle[linewidth=2pt,linestyle=dashed,fillcolor=blue,fillstyle=solid](1,1){2}
222 \psaxes[linecolor=red,linewidth=1pt,labels=none]{->}(0,0)(-1.5,-1.5)(3.5,3.5)
223 \rput(3.75,0){$x$}
224 \rput(0,3.85){$iy$}
225 \rput(3,-0.4){3}
226 \rput(-0.4,3){3$i$}
227 \psdots(1,1)
228 \end{pspicture}
229 \end{center}
230 corresponds to which set of complex numbers?
231 \begin{choice}[columns=2]
232 \correct\(\{z \in \C : |z-(i+1)|<2\}\)
233
234
235 \incorrect \(\{z \in \C : |z|-|1+i|<2\}\)
236 \feedback This set corresponds to the interior of a circle, centre the origin, radius $2+\sqrt 2$.
237
238
239 \incorrect \(\{z \in \C : \text{Re}(z+(i+1))<2 \}\)
240 \feedback This set corresponds to the open half plane containing all complex numbers $z=x+iy$ with $x<1$.
241
242 \incorrect \(\{z \in \C : |z-2|<|i+1-2|\}\)
243 \feedback This set corresponds to the interior of a circle, centre $2$, radius $\sqrt 2$.
244
245 \incorrect None of the above.
246
247 \end{choice}
248 \end{question}
249
250 \end{document}