-
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:
- ''
- ''
- ''
# 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".
>
> -- da Wikipedia
Mais informação
# ---------------------------------------------------------------------------
-
ref: solar-system
type: radio
files:
solar_system_planets: images/planets.png
text: Qual é o maior planeta do Sistema Solar?
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 `` 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: 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
Não têm um espaçamento perfeito, é uma limitação do markdown.
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