quiz

A run of questions the reader is shown one at a time, written in a scene's detail.

A quiz of three questions on its first, a choice the reader has answered correctly. Beneath it, a ruled-off row reads "Question 1 of 3" and, between two arrows, shows three dots: the first drawn long and green, the other two grey.A quiz of three questions on its first, a choice the reader has answered correctly. Beneath it, a ruled-off row reads "Question 1 of 3" and, between two arrows, shows three dots: the first drawn long and green, the other two grey.

#Allowed content

Body { }

#Allowed in

#Examples

quiz{
    question#shape:choice{
        What shape is a contour of $f(L, v) = Lv$?

        option{ A hyperbola }(correct)
        option{ A straight line }
    }
    question#name-it:text{
        What is a line of equal height called?
    }(
        expect: contour, isoline
    )
}

#Notes

  • The body holds questions only, each a question in its own right: its own #id, answers, feedback and derived attributes.
  • Beneath the question on show is a row that says which question it is of how many, and a dot for each question between two arrows. The arrows go back and on, and a dot goes straight to its question; the reader moves freely, answered or not.
  • A dot is grey while its question is open, then green, orange or red as it closed correct, partly correct or not correct. The dot of the question on show is drawn longer.
  • The question on show is kept while the page is open, so a reader who leaves the scene and comes back finds the same one. A reload starts at the first.
  • Inside a cue, the whole quiz arrives on that cue's step.

Last updated