questions-tutorial.yaml
3.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
-
ref: tut-information
type: information
title: information (ou info)
text: |
Texto informativo. Não conta para avaliação.
$$ p(x) = \frac{1}{\sqrt{2\pi\sigma^2}}e^{-\frac{(x-\mu)^2}{2\sigma^2}} $$
# ---------------------------------------------------------------------------
-
ref: tut-success
type: success
title: success
text: |
Texto de positivo (sucesso). Não conta para avaliação.
```C
int main() {
printf("Hello world!");
return 0; // comentario
}
```
Inline `code`.
# ---------------------------------------------------------------------------
-
ref: tut-warning
type: warning
title: warning (ou warn)
text: |
Texto de aviso. Não conta para avaliação.
Left | Center | Right
-----------------|:-------------:|----------:
$\sin(x^2)$ | *hello* | $1600.00
$\frac{1}{2\pi}$ | **world** | $12.50
$\sqrt{\pi}$ | `code` | $1.99
# ----------------------------------------------------------------------------
-
ref: tut-alert
type: alert
title: alert
text: Texto negativo (alerta). Não conta para avaliação. 
# ----------------------------------------------------------------------------
-
ref: tut-radio
type: radio
title: radio
text: Escolha simples, apenas uma opção está correcta.
options:
- Opção 0 (correcta)
- Opção 1
- Opção 2
- Opção 3
# opcionais e valores por defeito
shuffle: True
correct: 0
# ----------------------------------------------------------------------------
-
ref: tut-checkbox
type: checkbox
title: checkbox
text: Escolha múltipla, várias opções podem estar correctas.
options:
- Opção 0 (sim)
- Opção 1 (não)
- Opção 2 (não)
- Opção 3 (sim)
correct: [1,-1,-1,1]
# opcionais e valores por defeito
shuffle: True
# ----------------------------------------------------------------------------
-
ref: tut-text
type: text
title: text
text: |
Resposta numa linha de texto. A resposta está correcta se coincidir com alguma das respostas admissíveis.
Neste exemplo a resposta correcta é `azul`, `Azul` ou `AZUL`.
correct: ['azul', 'Azul', 'AZUL']
# ---------------------------------------------------------------------------
-
ref: tut-text-regex
type: text-regex
title: text-regex
text: |
Resposta numa linha de texto. A resposta é validada com uma expressão regular.
Neste exemplo a expressão regular é `(VERDE|[Vv]erde)`.
correct: !regex '(VERDE|[Vv]erde)'
# ---------------------------------------------------------------------------
-
ref: tut-numeric-interval
type: numeric-interval
title: numeric-interval
text: |
Resposta numérica numa linha de texto. A resposta é convertida para um float e tem de pertencer a um intervalo de valores.
Neste exemplo o intervalo é [3.14, 3.15].
correct: [3.14, 3.15]
# ---------------------------------------------------------------------------
-
ref: tut-textarea
type: textarea
title: textarea
text: |
Resposta num bloco de texto que pode ser usado para introduzir código.
A resposta é avaliada por um programa externo.
O programa externo, recebe a resposta no stdin e devolve a classificação no stdout.
Neste exemplo, o programa de avaliação verifica se a resposta contém as três palavras red, green e blue.
correct: correct/correct-question.py
# opcionais e defaults
lines: 3
timeout: 5