questions.yaml
5.38 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
-
ref: flags
type: radio
files:
flag1: images/flag-pt.svg
flag2: images/flag-es.svg
flag3: images/flag-fr.svg
text: Qual é a bandeira de Portugal?
options:
- '<img src="flag1" width="200" alt="vermelha e verde" />'
- '<img src="flag2" width="200" alt="vermelha e amarela" />'
- '<img src="flag3" width="200" alt="azul, branca e vermelha" />'
# opcional
title: Bandeiras nacionais
hint: |
> A Portuguesa, que hoje é um dos símbolos nacionais de Portugal (o seu hino nacional), nasceu como uma canção de cariz patriótico em resposta ao ultimato britânico para que as tropas portuguesas abandonassem as suas posições em África, no denominado "Mapa cor-de-rosa".
>
> -- <cite>da Wikipedia</cite>
<a href="https://pt.wikipedia.org/wiki/A_Portuguesa">Mais informação</a>
<iframe width="560" height="315" src="https://www.youtube.com/embed/DdOEpfypWQA" frameborder="0" allowfullscreen></iframe>
# ---------------------------------------------------------------------------
-
ref: solar-system
type: radio
files:
solar_system_planets: images/planets.png
text: Qual é o maior planeta do Sistema Solar? <img src="solar_system_planets" width="100%"/>
options:
- Mercúrio
- Marte
- Júpiter
- Têm todos o mesmo tamanho
# opcional
title: Sistema solar
correct: 2
shuffle: False
discount: True
hint: Se usar o markdown `!(text)[imagem]` a imagem fica com tamanho fixo. É preferível usar a tag html `<img with="100%" src="...">` para ter sempre a largura correcta.
# ---------------------------------------------------------------------------
-
ref: math-expressions
type: checkbox
text: Quais das seguintes expressões são verdadeiras?
options:
- $1 > 0$
- $\sqrt{3} > \sqrt{2}$
- $e^{i\pi} + 1 = 0$
- $\frac{\partial f(x,y)}{\partial z} = 1$
- $-1 > 1$
correct: [1, 1, 1, -1, -1]
# optional
title: Expressões matemáticas
shuffle: True
discount: True
hint: Duas delas são falsas.
# ---------------------------------------------------------------------------
-
ref: our_planet1
type: text
text: O nosso planeta chama-se planeta...
correct: ['Terra', 'terra']
# ---------------------------------------------------------------------------
-
ref: our_planet2
type: text-regex
text: O nosso planeta chama-se planeta...
correct: !regex '[Tt]erra'
# ---------------------------------------------------------------------------
-
ref: fractions
type: numeric-interval
text: Quanto é 1/4?
correct: [0.249, 0.251]
# ---------------------------------------------------------------------------
-
ref: basic-colors
type: textarea
text: Escreva o nome das três cores básicas em inglês.
correct: correct/correct-question.py
# opcional
lines: 3
timeout: 5
hint: Qualquer ordem serve.
# ---------------------------------------------------------------------------
-
ref: question-whatever
type: generator
script: generators/generate-question.py
# opcional
arg: "11,120"
# the script should print a question in yaml format.
# Print only the dictionary, not the list of dictionaries like here.
# ---------------------------------------------------------------------------
-
ref: instructions
type: alert
title: Atenção
text: |
Deverá indicar em cada pergunta se pretende ou não classificá-la. Se não quiser responder a uma questão, desactive-a para evitar penalizações na nota final.
# ---------------------------------------------------------------------------
-
ref: markdown_instructions
type: information
title: Que mais se pode incluir nas perguntas?
# allow these files will be served:
files:
imagem_privada: images/flag-pt.svg
text: |
O texto das perguntas é escrito em __markdown__ e pode incluir algumas *tags* __html__. É usado __MathJax__ para gerar fórmulas matemáticas com a *syntax* do __LaTeX__.
### LaTeX
As soluções da equação $ax^2+bx+c=0$ são obtidas com a fórmula resolvente:
$$
x = \frac{-b\pm\sqrt{b^2-4ac}}{2a}
$$
### Código
Suporta *syntax highlight* em múltiplas linguagens.
C:
```C
int main() {
printf("Hello world!");
return 0; // comentario
}
```
Python:
```python
def myfunc(x, y):
'returna soma dos argumentos'
return x + y + 1.0 # mais uma unidade
```
Java:
```java
public class HelloWorld {
public static void main(String[] args) {
// tanta coisa para dizer ola...
System.out.println("Hello, World");
}
}
```
### Tabelas
Left | Center | Right
-----------------|:-------------:|----------:
$\sin(x^2)$ | *hello* | $1600.00
$\frac{1}{2\pi}$ | **world** | $12.50
$\sqrt{\pi}$ | `code` | $1.99
---
(c) By the author