Wiris

Documentation / WirisQuizzes

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • LearningLemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Miscellaneous

                      • Wiris Integrations

                        • Home
                        • WirisQuizzes
                        • Getting Started
                        • WirisQuizzes Question Types
                        • WirisQuizzes Question Types

                        Cloze

                        Reading time: 1min

                        Embedded answers, or Cloze, allow inserting different question types within a single question. For example:

                        In this example, there is a short answer and a multiple-choice question.

                        Detailed information on Cloze questions can be found at Moodle docs as the WirisQuizzes type follows the exact same format, with the following exceptions:

                        • There is no "Numerical" subtype because none is needed.
                        • Variables can be used, but the pound symbol "#" has to be escaped with a backslash (e.g. "\#a" instead of the usual "#a").

                        The previous question, for example, could be made with the following text:

                        and in the Define random variables and functions section:

                        Students can still write formulas in their answer using the editor popup by clicking the square root icon in the answer blankfor embedded short answer types. To enable this, select Math editor in a popup in the Input options section:

                        Furthermore, we can observe that the question algorithm ensures the polynomial will have no roots, so the question is not entirely random.
                        If we want to consider three answer options, we must change the answer format to include the new variables.

                        Variables preceded by = will be taken as correct answers, and those preceded by ~ as incorrect ones. The algorithm for the question should be defined using CalcMe like this:

                        Shuffled answers

                        By default, multichoice questions in WirisQuizzes Cloze question type are not shuffled. Instead, there are shuffled multichoice types to accomplish this. These are: 

                          Unshuffled Shuffled
                        Drop-down MC MCS
                        Horizontal MCH MCHS
                        Vertical MCV MCVS

                        For example, if we replace the "MC" above with "MCHS", the question will look like this:

                        And the multiple choice will be in random order each time.

                        Remarks

                        • Variables can be used in the answer in feedback fields (and only these).
                        • In the short answer type ("SA") each answer must be a variable or text, it cannot be a combination of both.
                        • If a variable is written as a formula, it will be converted to text inside a multichoice option (i.e. 2^(1/2) instead of 2).
                        • Settings in the Validation options section are common for all questions.

                        Was this article helpful?

                        Give feedback about this article

                        Related Articles

                        • WirisQuizzes Question Types
                        • Essay
                        • Short answer
                        • Multiple choice
                        • Matching

                        Cloze

                        Shuffled answers Remarks

                        Empowering STEM education

                        MathType

                        • Office Tools
                        • LMS
                        • XML
                        • HTML

                        WirisQuizzes

                        Learning Lemur

                        Integrations

                        Solutions

                        • Education
                        • Publishing houses – platforms and interactive
                        • Publishing houses – Print and digital
                        • Technical writers

                        Pricing

                        Downloads

                        Blog

                        • Success stories

                        About us

                        • Careers
                        • Partnership

                        Contact Us

                        Contact Sales

                        European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                        • Cookie Policy
                        • Terms of Use
                        • Privacy Policy / GDPR
                        • Student Data Privacy
                        • Compliance
                        • Cookie Settings

                        © Wiris 2026

                        Expand