| … | |
… | |
| 30 | ## Do NOT show partial correct answers |
30 | ## Do NOT show partial correct answers |
| 31 | $showPartialCorrectAnswers = 0; |
31 | $showPartialCorrectAnswers = 0; |
| 32 | |
32 | |
| 33 | $r = random(2, 20); |
33 | $r = random(2, 20); |
| 34 | |
34 | |
| 35 | @answers = ( |
35 | $mc[1] = new_multiple_choice(); |
|
|
36 | $mc[1]->qa('The largest set on which the function |
|
|
37 | \(f(x,y) = 1/($r - x^2 - y^2)\) |
|
|
38 | is continuous is:', |
| 36 | "All of the xy-plane except the circle \(x^2 + y^2 = $r\)", |
39 | 'All of the xy-plane except the circle \(x^2 + y^2 = $r\)' |
|
|
40 | ); |
|
|
41 | $mc[1]->extra( |
| 37 | "All of the xy-plane", |
42 | 'All of the xy-plane', |
| 38 | "The interior of the circle \(x^2 + y^2 = $r\)", |
43 | 'The interior of the circle \(x^2 + y^2 = $r\)', |
| 39 | "The exterior of the circle \(x^2 + y^2 = $r\)", |
44 | 'The exterior of the circle \(x^2 + y^2 = $r\)', |
| 40 | "The interior of the circle \(x^2 + y^2 = $r\), plus the circle" |
45 | 'The interior of the circle \(x^2 + y^2 = $r\), plus the circle' |
| 41 | ); |
46 | ); |
| 42 | @permutation = NchooseK(5,5); |
47 | |
| 43 | |
|
|
| 44 | ## Ok, we are ready to begin the problem... |
48 | ## Ok, we are ready to begin the problem... |
| 45 | ## |
49 | ## |
| 46 | TEXT(beginproblem()); |
50 | TEXT(beginproblem()); |
| 47 | |
51 | |
|
|
52 | BEGIN_TEXT |
|
|
53 | $PAR |
|
|
54 | \{ $mc[1]->print_q() \} |
| 48 | |
55 | |
| 49 | BEGIN_TEXT |
56 | \{ $mc[1]->print_a() \} |
| 50 | $BR |
57 | $PAR |
| 51 | |
58 | |
| 52 | The largest set on which the function \(f(x,y) = 1/($r - x^2 - y^2)\) |
|
|
| 53 | is continuous is \{ans_rule()\} |
|
|
| 54 | |
|
|
| 55 | $PAR |
|
|
| 56 | END_TEXT |
59 | END_TEXT |
| 57 | |
60 | |
| 58 | TEXT(OL(@answers[@permutation])); |
61 | ANS(radio_cmp($mc[1]->correct_ans)); |
| 59 | @inverted_alphabet = @ALPHABET[invert(@permutation)]; |
|
|
| 60 | |
62 | |
| 61 | ANS(str_cmp($inverted_alphabet[0])); |
63 | |
|
|
64 | |
| 62 | |
65 | |
| 63 | ENDDOCUMENT(); |
66 | ENDDOCUMENT(); |
| 64 | |
67 | |
| 65 | |
68 | |
| 66 | |
69 | |