Rev 11375 | Rev 13476 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11375 | Rev 12172 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | type=gapfill first |
1 | type=gapfill first |
2 | textarea="explain" |
2 | textarea="explain" |
3 | random="a b c d" |
3 | random="a b c d" |
4 | computed="ans" |
4 | computed="ans" |
5 | 5 | ||
6 | : |
6 | :Una pregunta numèrica amb 4 paràmetres aleatoris. |
7 | 7 | ||
8 |
|
8 | El model tria aleatoriament els quatre paràmetres entre valors pertanyents |
9 |
|
9 | a intervals determinats pel dissenyador de l'exercici. |
10 | La |
10 | La fórmula que combina aquests paràmetres, corresponent al càlcul que ha de realitzar |
11 |
|
11 | l'alumne per a trobar la resposta correcta, també és editable pel dissenyador. |
12 | 12 | ||
13 | $oef_help |
13 | $oef_help |
14 | 14 | ||
15 | $math_help |
15 | $math_help |
16 | <p> |
16 | <p> |
17 |
|
17 | Autor del model: Gang Xiao <qualite@wimsedu.info> |
18 | 18 | ||
19 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
19 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
20 | 20 | ||
21 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
21 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
22 | (Ce sont les lignes qui commencent par un ':'.) |
22 | (Ce sont les lignes qui commencent par un ':'.) |
23 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
23 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
24 | 24 | ||
25 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
25 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
26 | 26 | ||
27 | :\title{Quatre |
27 | :\title{Quatre paràmetres} |
28 | :\author{XIAO, Gang} |
28 | :\author{XIAO, Gang} |
29 | :\email{qualite@wimsedu.info} |
29 | :\email{qualite@wimsedu.info} |
- | 30 | :\credits{} |
|
30 | 31 | ||
31 | : |
32 | :Primer paràmetre \a |
32 | \real{a=randint(-20..20)} |
33 | \real{a=randint(-20..20)} |
33 | 34 | ||
34 | : |
35 | :Segon paràmetre \b |
35 | \real{b=randint(-20..20)} |
36 | \real{b=randint(-20..20)} |
36 | 37 | ||
37 | : |
38 | :Tercer paràmetre \c |
38 | \real{c=randint(-20..20)} |
39 | \real{c=randint(-20..20)} |
39 | 40 | ||
40 | : |
41 | :Quart paràmetre \d |
41 | \real{d=randint(-20..20)} |
42 | \real{d=randint(-20..20)} |
42 | 43 | ||
43 | : |
44 | :Com calcular la resposta correcta |
44 |
|
45 | Es reconeixen totes les funcions habituals. Utilitzem \a, \b, \c, \d per a |
45 |
|
46 | designar els paràmetres aleatoris definits anteriorment. |
46 | \real{ans=(\a)*(\d) - (\b)*(\c)} |
47 | \real{ans=(\a)*(\d) - (\b)*(\c)} |
47 | 48 | ||
48 | : |
49 | :Enunciat |
49 |
|
50 | Tingueu en compte que la sintaxi \ (...) mostra una fórmula matemàtica. |
50 | faut. |
- | |
51 | $embraced_randitem |
51 | $embraced_randitem |
52 | \text{explain= |
52 | \text{explain= |
53 |
|
53 | Calcular el determinant de la matriu \([\a,\b;\c,\d]). |
54 | } |
54 | } |
- | 55 | ||
- | 56 | :S'accepta text aleatori posat entre claus |
|
- | 57 | $embraced_randitem |
|
- | 58 | \text{accolade=item(1,1 sí, |
|
- | 59 | 2 no)} |
|
55 | 60 | ||
56 | :%% Calculs à ne pas modifier |
61 | :%% Calculs à ne pas modifier |
- | 62 | \text{accolade=wims(word 1 of \accolade)} |
|
- | 63 | ||
57 | \text{ |
64 | \text{explain=\accolade=1 ?wims(embraced randitem \explain)} |
58 | 65 | ||
59 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |
66 | :%%%%%%%%%%%%% Maintenant l'énoncé en code html. %%%%%%%%%%%%%%%%%%%% |
60 | 67 | ||
61 | ::Vous n'avez pas besoin de modifier ceci en général. |
68 | ::Vous n'avez pas besoin de modifier ceci en général. |
62 | 69 | ||
63 | \statement{\explain |
70 | \statement{\explain |
64 | } |
71 | } |
65 | 72 | ||
66 | :%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5 |
73 | :%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5 |
67 | 74 | ||
68 | \answer{ |
75 | \answer{Resposta}{\ans}{type=number} |
69 | 76 |