- ref: solar-system-jupiter type: radio text: Which one is the largest planet? options: - Jupiter - Mercury - Mars # optional, default is 0, True, True correct: 0 shuffle: True discount: True hint: Just don't choose the wrong ones # --------------------------------------------------------------------------- - ref: solar-system-mars type: checkbox text: Which ones are correct? options: - $1 > 0$ - $-1 > 1$ - $\sqrt{3} > \sqrt{2}$ - $0 = 0$ correct: [1, -1, 1, 0.5] # optional discount: True hint: There are three. # --------------------------------------------------------------------------- - ref: question-v1 type: text text: What's your favorite basic color? correct: ['blue', 'green'] hint: It's not red. # --------------------------------------------------------------------------- - ref: question-v2 type: text_regex text: What's my favorite basic color? correct: '[bB]lue' hint: It's not red. # --------------------------------------------------------------------------- - ref: question-colors type: textarea text: Write names of the three basic colors. correct: demo/correct-question.py hint: They start by RGB and order does not matter. # --------------------------------------------------------------------------- - ref: question-whatever type: generator script: demo/generate-question.py # 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: information text: Please do not cheat. # --------------------------------------------------------------------------- - ref: another-question # type: information (default) text: | The text of questions is parsed as __markdown__ and can include LaTeX formulas $\sqrt{2\pi}$ and pretty code ```.C int main() { return 0; } ```