Documentation / WirisQuizzes

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • Wiris Quizzes

      • Learning Lemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Miscellaneous

                      • Wiris Integrations

                        • Home
                        • Wiris Quizzes
                        • Getting Started
                        • WirisQuizzes Answer Types
                        • WirisQuizzes Answer Types

                        Text

                        Reading time: 1min

                        Students can answer with plain text, removing any mathematical comparison. You need to select the Text answer type for pure text answers with no mathematical content.

                        Validation options

                        There are several particular validation options when we create a Text question.

                        Note you can set:

                        Match case: if disabled, lowercase and uppercase letters are equivalent.

                        Match spaces: if disabled, leading and trailing spaces will be removed, and internal groups of spaces will be collapsed to one.

                        Random variables

                        If the correct answer is generated using CalcMe, it must be a string. To convert an expression to a string you can use:

                        Make a constant string: a="123"

                        Concatenate with a string, even the empty one: b=123|""

                        string(123)

                        string_substitution("#1",123)

                        If you are using the string_substitution() command, it's essential to consider that mathematical expressions can't be introduced through the code editor. You can find an example below:

                         💡Tip

                        You can see more details regarding the code editor and what this new feature has to offer here.

                        Example: Converting a number to hexadecimal

                        Imagine creating a question asking to convert a given random number to hexadecimal. To do so, we need to start creating the CalcMe algorithm where we're going to define than random decimal value and the corresponding hexadecimal representation.

                        Thus, the variable h will correspond to the correct answer to the question. We need to define it in WirisQuizzes Studio accordingly.

                        As we want to accept both answers in capital or lowercase letters, but we want the answer to have exactly 8 digits, we will select the following validation options:

                        Once saved the changes and assigned the full grade to the correct answer, we can preview the question to see how it works.

                        Was this article helpful?

                        Yes
                        No
                        Give feedback about this article

                        Related Articles

                        • WirisQuizzes Answer Types
                        • Equation
                        • Plotter
                        • Sketch
                        • Statistics charts

                        Text

                        Validation options Random variables Example: Converting a number to hexadecimal

                        Making people’s STEM work more meaningful

                        MathType

                        • MathType for Office Tools
                        • MathType for Mac
                        • MathType for Microsoft 365
                        • MathType for Google Workspace
                        • MathType for LMS
                        • MathType for XML Editors
                        • Arabic notation
                        • Our products accessibility
                        • MathType is online

                        WirisQuizzes

                        Learning Lemur

                        Solutions for Education

                        • Blackboard Learn
                        • Brightspace by D2L
                        • Canvas
                        • Google Classroom
                        • Moodle
                        • Schoology

                        Solutions for Publishing Houses

                        Solutions for Technical Writers

                        Solutions for Chemistry

                        Integrations

                        • HTML Editors
                        • MathType in WordPress

                        Pricing

                        Company

                        Careers

                        Blog

                        Contact Us

                        Buy Now

                        Plugin Downloads

                        © Wiris 2025

                        • Cookie Settings
                        • Cookie Policy
                        • Terms of Use
                        • Privacy Policy / GDPR
                        • Student Data Privacy
                        • Compliance
                        • Powered by Helpjuice
                        Expand