questions.yaml 2.3 KB
-
    ref: solar-system-jupiter
    type: radio
    text: Qual dos seguintes é o maior planeta?
    options:
        - Jupiter
        - Mercury
        - Mars
    # optional, default is 0, True, True
    correct: 0
    shuffle: True
    discount: True
    hint: Também é o mais pesado.
# ---------------------------------------------------------------------------
-
    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
    discount: True
    hint: Duas delas são falsas.
# ---------------------------------------------------------------------------
-
    ref: question-v1
    type: text
    text: Indique uma das minhas cores básicas favoritas?
    correct: ['Azul', 'Verde']
    hint: Só há 3 cores básicas e não gosto de vermelho. A primeira letra é maiúscula.
# ---------------------------------------------------------------------------
-
    ref: question-v2
    type: text_regex
    text: Qual é a minha cor básica favorita?
    correct: '[aA]zul'
    hint: O céu é...
# ---------------------------------------------------------------------------
-
    ref: question-colors
    type: textarea
    text: Escreva o nome das três cores básicas em inglês.
    correct: correct-question.py
    hint: Qualquer ordem serve.
# ---------------------------------------------------------------------------
-
    ref: question-whatever
    type: generator
    script: generate-question.py
    arg: "11,120"
    # the script should print a question in yaml format like the ones above.
    # Print only the dictionary, not the list (hiffen).
# ---------------------------------------------------------------------------
-
    ref: one-question
    type: warning
    text: Não vale fazer batota!
# ---------------------------------------------------------------------------
-
    ref: another-question
    # type: information (default)
    text:   |
            O texto das perguntas é escrito em __markdown__ e pode incluir formulas em
            LaTeX $\sqrt{2\pi}$ e código lindinho

            ```.C
            int main() {
                return 0;
            }
            ```