Debian Codegraph @

texmf-dist/doc/latex/randexam/randexam-a-answer.tex

raw
1 % -*- coding: utf-8 -*-
2 % !TEX program = xelatex
3 \documentclass[12pt,math=all]{randexam}
4
5 %\SetExamBoolFalse{answer} % hide answers
6
7 \SetExamOption{
8 seed = 19061116, % random seed
9 }
10
11 \begin{document}
12
13 \examtitle{name=Math 1906 Final Exam,date=\today,version=A} % make exam title
14
15 \gradetable[total=4]
16
17 \exampart{Fill in the blanks.}[6 questions; 3 points for each; 18 points in total.]
18
19 % make answer table: six in total, three for each row, strut height 3em
20 \answertable[total=6,column=3,strut=3em]
21
22 \begin{question}
23 The first question $k>0$, text $f(x)=\ln x-\frac{x}{\e}+k$ text $(0,+\infty)$
24 text text text text text text text text text text text text text text text text
25 text text text text text text text text text text text text text \fillout{$2$}.
26 \end{question}
27
28 \bigskip
29
30 \begin{question}
31 The second question $\va=(2,1,2)$, $\vb=(4,-1,10)$, $\vc=\vb-\lambda\va$,
32 text text text $\va\bot\vc$, text text text text text text text text text
33 text text text text text $\lambda=$ \fillout{$3$}.
34 \end{question}
35
36 \bigskip
37
38 \begin{question}
39 The third question $\left|\begin{array}{cc}
40 1 & 2\\
41 -3 & x
42 \end{array}\right|=0$, text text text text text text text text
43 text text text text text text text text text $x=$ \fillout{$-6$}.
44 \end{question}
45
46 \bigskip
47
48 \begin{question}
49 The fourth question $\alpha_1=(1,1,0), \alpha_2=(0,1,1), \alpha_3=(1,0,1)$,
50 text $\beta=(4, 5, 3)$ text $\alpha_1, \alpha_2, \alpha_3$ text text text text
51 text text text text text text text text text text text text text text text text
52 text text text text text text $\beta=$ \fillout{$3\alpha_1+2\alpha_2+\alpha_3$}.
53 \end{question}
54
55 \bigskip
56
57 \begin{question}%[points=3]
58 The fifth question $\xi$ text text text $E\xi=3, D\xi=2$, text text text text text
59 text text text text text text text text text text $E\xi^2=$ \fillout{$11$}.
60 \end{question}
61
62 \bigskip
63
64 \begin{question}
65 The sixth question $\xi$ text text text text $\eta$ text text text text $\xi\sim N(1,4),
66 \eta\sim N(2,5)$, text text text text text text text text text text text text text text
67 text text text text text text text text text text $\xi-2\eta\sim$ \fillout{$N(-3,24)$}.
68 \end{question}
69
70 \bigskip
71
72 \newpage
73
74 \exampart{Select one answer from four choices.}[6 questions; 3 points for each; 18 points in total.]
75
76 % make answer table: six in total, six for each row, default strut height
77 \answertable[total=6,column=6]
78
79 \begin{question}
80 The first question text, text text text text text text text text text text
81 text text text text text text text text text text text text text \pickout{C}
82 \begin{abcd}
83 \item first $\int f'(x)\dx=f(x)$
84 \item second $\int \d f(x)=f(x)$
85 \item third $\frac{\d}{\dx}\big(\int f(x)\dx\big)=f(x)$
86 \item fourth $\d\big(\int f(x)\dx\big)=f(x)$
87 \end{abcd}
88 \end{question}
89
90 \bigskip
91
92 \begin{question}
93 The second question $F(x)$ text $f(x)$ text, text \pickout{A}
94 \begin{abcd}
95 \item first choice $F(x)$ text $\Leftrightarrow$ $f(x)$ text
96 \item second choice $F(x)$ text text $\Leftrightarrow$ $f(x)$ text
97 \item third choice $F(x)$ text $\Leftrightarrow$ $f(x)$ text text
98 \item fourth choice $F(x)$ text text $\Leftrightarrow$ $f(x)$ text text
99 \end{abcd}
100 \end{question}
101
102 \bigskip
103
104 \begin{question}
105 The third question $A = \left(\begin{array}{ccc}
106 1 & 1 & 0\\
107 1 & x & 0\\
108 0 & 0 & 1
109 \end{array}\right)$ text text $\lambda_1 = 1$ text $\lambda_2
110 = 2$, text $x=$ \pickout{B}
111 \begin{abcd}
112 \item $2$
113 \item $1$
114 \item $0$
115 \item $-1$
116 \end{abcd}
117 \end{question}
118
119 \bigskip
120
121 \begin{question}
122 The fourth question $f = 4 x_1^2 - 2 x_1 x_2 + 6 x_2^2$ text text text text text text
123 text text text text text text text text text text text text text text text \pickout{C}
124 \begin{abcd}
125 \item $\left(\begin{array}{cc}
126 4 & - 2\\
127 - 2 & 6
128 \end{array}\right)$
129 \item $\left(\begin{array}{cc}
130 2 & - 2\\
131 - 2 & 3
132 \end{array}\right)$
133 \item $\left(\begin{array}{cc}
134 4 & - 1\\
135 - 1 & 6
136 \end{array}\right)$
137 \item $\left(\begin{array}{cc}
138 2 & - 1\\
139 - 1 & 3
140 \end{array}\right)$
141 \end{abcd}
142 \end{question}
143
144 \bigskip
145
146 \begin{question}
147 The fifth question \underline{wrong} text \pickout{B}
148 \begin{abcd}
149 \item first choice text text text text text text text text text
150 \item second choice text text text text text text text text text
151 \item third choice text text text text text text text text text
152 \item fourth choice text text text text text text text text text
153 \end{abcd}
154 \end{question}
155
156 \bigskip
157
158 \begin{question}
159 The sixth question $X$ text $(X_1,\cdots,X_n)$ text \underline{wrong} text text
160 text text text text text text text text text text text text text text \pickout{D}
161 \begin{abcd}
162 \item text text text
163 \item text $n$ text
164 \item $X_1, \cdots, X_n$ text
165 \item $X_1 = X_2 =\cdots = X_n$
166 \end{abcd}
167 \end{question}
168
169 \bigskip
170
171 \newpage
172
173 \exampart{Work out math questions.}[6 questions; 8 points for each; 48 points in total.]
174
175 \begin{question}
176 The first question $\int\e^{2x}\,(\tan x+1)^2\dx$.
177 \end{question}
178
179 \smallskip
180
181 \begin{solution}
182 $I$ \? $=\int\e^{2x}\,\sec^2 x\dx+2\int\e^{2x}\,\tan x\dx$ \points{2}
183 \+ $=\int\e^{2x}\,\d(\tan x)+ 2\int\e^{2x}\,\tan x\dx$ \points{4}
184 \+ $=\e^{2x}\,\tan x - 2\int\e^{2x}\,\tan x\dx+ 2\int\e^{2x}\,\tan x\dx$ \points{6}
185 \+ $=\e^{2x}\,\tan x + C$ \points{8}
186 \end{solution}
187
188 \vfill
189
190 \begin{question}
191 The second question $A(1,2,-1), B(2,3,0),C(3,3,2)$ text $\triangle ABC$ text text text text text text.
192 \end{question}
193
194 \smallskip
195
196 \begin{solution}
197 Text $\overrightarrow{AB}=(1,1,1),\overrightarrow{AC}=(2,1,3)$, \points{2}
198 text $\overrightarrow{AB}\times \overrightarrow{AC}=\begin{vmatrix}
199 \vec{i}&\vec{j} &\vec{k}\\
200 1&1&1\\
201 2&1&3\\
202 \end{vmatrix}=(2,-1,-1)$, \points{4}
203 text $\triangle ABC$ text $S_{\triangle ABC}=\frac{1}{2}\big|\overrightarrow{AB}\times
204 \overrightarrow{AC}\big|=\frac{1}{2}\sqrt{6}.$ \points{6}
205 Text text $2(x-2)-(y-3)-z=0$, text $2x-y-z-1=0$. \points{8}
206 \end{solution}
207
208 \vfill
209
210 \newpage
211
212 \begin{question}
213 The third question $A = \left|\begin{array}{cccc}
214 0 & 1 & 2 & 3\\
215 1 & 2 & 3 & 0\\
216 2 & 3 & 0 & 1\\
217 3 & 0 & 1 & 2
218 \end{array}\right|$ text.
219 \end{question}
220
221 \smallskip
222
223 \begin{solution}
224 $A \? = \left|\begin{array}{cccc}
225 0 & 1 & 2 & 3\\
226 1 & 2 & 3 & 0\\
227 2 & 3 & 0 & 1\\
228 3 & 0 & 1 & 2
229 \end{array}\right| = \left|\begin{array}{cccc}
230 0 & 1 & 2 & 3\\
231 1 & 2 & 3 & 0\\
232 0 & - 1 & - 6 & 1\\
233 0 & - 6 & - 8 & 2
234 \end{array}\right| = 1 \cdot (- 1)^{2 + 1} \left|\begin{array}{ccc}
235 1 & 2 & 3\\
236 - 1 & - 6 & 1\\
237 - 6 & - 8 & 2
238 \end{array}\right|$ \points{4}
239 \+ $= -\left|\begin{array}{ccc}
240 1 & 2 & 3\\
241 0 & - 4 & 4\\
242 0 & 4 & 20
243 \end{array}\right| = - \left|\begin{array}{cc}
244 - 4 & 4\\
245 4 & 20
246 \end{array}\right| = -(-4\cdot20-4\cdot4) = 96$ \points{8}
247 \end{solution}
248
249 \vfill
250
251 \begin{question}
252 The fourth question, tex text $f = x_1^2 + 2 x_1 x_2 - 6 x_1 x_3 + 2 x_2^2 - 12
253 x_2 x_3 + 9 x^2_3$ text text $f = d_1 y^2_1 + d_2 y^2_2 + d_3 y^2_3$.
254 \end{question}
255
256 \smallskip
257
258 \begin{solution}
259 $f \? = x_1^2 + 2 x_1 x_2 - 6 x_1 x_3 + 2 x_2^2 - 12 x_2 x_3 + 9 x^2_3$ \par
260 \+ $= x_1^2 + 2 x_1 (x_2 - 3 x_3) + (x_2 - 3 x_3)^2 + x_2^2 - 6 x_2 x_3 $ \par
261 \+ $= (x_1 + x_2 - 3 x_3)^2 + x_2^2 - 6 x_2 x_3$ \points{3}
262 \+ $= (x_1 + x_2 - 3 x_3)^2 + x_2^2 - 2 x_2 \cdot 3 x_3 + (3 x_3)^2 - 9x_3^2$ \par
263 \+ $= (x_1 + x_2 - 3 x_3)^2 + (x_2 - 3 x_3)^2 - 9 x_3^2$ \points{6}
264 Text $y_1 = x_1 + x_2 - 3 x_3, y_2 = x_2 - 3 x_3, y_3 = x_3$, \newline
265 text $f = y_1^2 + y_2^2 - 9y_3^2$ text.\points{8}
266 \end{solution}
267
268 \vfill
269
270 \newpage
271
272 \begin{question}
273 The fifth question text text text $0.2$ text text, text text $100$ text text.\par
274 (1) text text text text text text $\xi$ text $10$ text $30$ text.\par
275 (2) text text text text text $\xi$ text $10$ text $30$ text.
276 \end{question}
277
278 \smallskip
279
280 \begin{solution}
281 $E\xi = n p = 100 \cdot 0.2 = 20, D\xi = n p q = 100 \cdot 0.2 \cdot 0.8 = 16$. \points{2}
282 (1) $P (10 < \xi < 30) = P (|\xi - E\xi| < 10) \ge 1 - \frac{D\xi}{10^2}
283 = 1 - \frac{16}{100} = 0.84$. \points{4}
284 (2) $P (10 < \xi < 30) \? \approx \Phi_0\left(\frac{30 - 20}{\sqrt{16}}\right)
285 - \Phi_0\left(\frac{10 - 20}{\sqrt{16}}\right)$ \points{6}
286 \+ $= 2 \Phi_0(2.5) - 1 = 2 \cdot 0.9938 - 1 =0.9876$ \points{8}
287 \end{solution}
288
289 \vfill
290
291 \begin{question}
292 The sixth question $N(\mu,\sigma^2)$ text text $16$ text, text text text $3160$, text text $100$.
293 Text text $H_0:\mu=3140$ text text ($\alpha = 0.01$).
294 \end{question}
295
296 \smallskip
297
298 \begin{solution}
299 (1) Text text $H_0 : \mu = 3140$. \points{2}
300 (2) Text text text $T = \frac{\widebar{X}-\mu}{S / \sqrt{n}} \sim t(n-1)$. \points{3}
301 (3) Text text $t_{\alpha} = t_{\alpha} (n - 1) = t_{0.01} (15) =2.947$. \points{5}
302 (4) Text text text $t = \frac{\widebar{x} - \mu_0}{s/\sqrt{n}} =\frac{3160-3140}{100/4} = 0.8$.\points{7}
303 (5) Text $| t | < t_{\alpha}$, text text $H_0$, text text text. \points{8}
304 \end{solution}
305
306 \vfill
307
308 \newpage
309
310 \exampart{Work out math proofs.}[2 questions; 16 points in total.]
311
312 \SetExamTranslation{solution-Solution=Proof} % rename "Solution" as "Proof"
313
314 \begin{question}[points=9]
315 The first question $\{x_n\}$ text $x_1=\sqrt2$, $x_{n+1}=\sqrt{2+x_n}$.
316 Text text text, text text text.
317 \end{question}
318
319 \smallskip
320
321 \begin{solution}
322 (1) Text, text $x_1<2$, text $x_k<2$ text
323 $$x_{k+1}=\sqrt{2+x_k}<\sqrt{2+2}=2,$$
324 Text text text text text $n$ text $x_n<2$, text text text.
325 Text text
326 $$\frac{x_{n+1}}{x_n}=\sqrt{\frac{2}{x_n^2}+\frac{1}{x_n}}>\sqrt{\frac{2}{2^2}+\frac{1}{2}}=1,$$
327 Text text text text text. Text text text text text, Text text text text.\points{4}
328 (2) Text text text text $A$, text text text text text text
329 $$A=\sqrt{2+A}.$$
330 Text text $A=2$, text text $\{x_n\}$ text text text $2$.\points{8}
331 \end{solution}
332
333 \vfill
334
335 \begin{question}[points=7]
336 The second question $A$ text $B$ text, text $A$ text $\widebar{B}$ text.
337 \end{question}
338
339 \smallskip
340
341 \begin{solution}
342 \? $P (A \cdot \widebar{B}) = P (A - B) = P (A - A B)$ \points{2}
343 \< $= P (A) - P (A B) = P (A) - P (A) P (B)$ \points{4}
344 \< $= P (A) (1 - P (B)) = P (A) P (\widebar{B})$ \points{6}
345 Text text text $A$ text text text $\widebar{B}$ text text text.\points{8}
346 \end{solution}
347
348 \vfill
349
350 \examdata{Some data may be used in the exam} % appendix data
351
352 \begin{tabularx}{\linewidth}{*{4}{>{$}X<{$}}}
353 \hline
354 \Phi_0(0.5)=0.6915 & \Phi_0(1)=0.8413 & \Phi_0(2)=0.9773 & \Phi_0(2.5)=0.9938 \\
355 t_{0.01}(8)=3.355 & t_{0.01}(9)=3.250 & t_{0.01}(15)=2.947 & t_{0.01}(16)=2.921 \\
356 \chi_{0.005}^2(8)=22.0 & \chi_{0.005}^2(9)=23.6 & \chi_{0.005}^2(15)=32.8 & \chi_{0.005}^2(16)=34.3 \\
357 \chi_{0.995}^2(8)=1.34 & \chi_{0.995}^2(9)=1.73 & \chi_{0.995}^2(15)=4.60 & \chi_{0.995}^2(16)=5.14 \\
358 \hline
359 \end{tabularx}
360
361 \end{document}