Examples for Input Problem Text

Example 1


\begin{question}

    \type{input.text}

    \begin{variables}
        \string{f}{b + c - 2}
        \randint{x}{2}{5}
    \end{variables}

    \text{Simplify the expression, remove all brackets: \\
     $-(\var{x} a -(b + c - (5 - (\var{x} a +3))))$}
    \explanation{Use your fingers}

    \begin{answer}
        \text{An answer is: }
        \inputAsString{g}
        \solution{f}
        \checkStringsForRelation{count((,g) + count(),g)=0 AND equal(g,f)}
    \end{answer}

\end{question}

Example 2


\begin{question}

    \type{input.text}

    \begin{variables}
        \string{f}{x^2 + 2x + 1}
    \end{variables}

    \text{Expand the expression $(x+1)^2$ }
    \explanation{Check your note book}

    \begin{answer}
        \text{An answer is: }
        \inputAsString{g}
        \solution{f}
        \checkStringsForRelation{equal(g,f)}
    \end{answer}

\end{question}          

Example 3


\begin{question}
    \type{input.text}

    \begin{variables}
        \string{f}{(\sin(x))^2+(\cos(x))^2}
        \string{f1}{1}
    \end{variables}

    \text{Write the function given by the expression \\
     $\var{f}$ (you may simplify it) }
    \explanation{A possible answer}

    \begin{answer}
        \text{An answer is: }
        \inputAsString{g}
        \solution{f1} % or f2 or f3
        \checkStringsForRelation{equal(g,f)}
        \checkAsFunction{x}{1}{5}{100}
    \end{answer}

\end{question}

Example 4


\begin{question}

    \begin{variables}
        \string{f}{happy}
    \end{variables}

    \text{Give a word with five letters}
    \explanation{the number is not 5, \\ 
      a possible answer \\
      (white spaces at the beginning and end are ignored)}
    \type{input.text}

    \begin{answer}
        \text{An answer is: }
        \inputAsString{g}
        \solution{f}
    \end{answer}
\end{question}

q1.png (4.65 KB) Sabine Greiser, 07/01/2014 12:48 PM

q2.png (2.92 KB) Sabine Greiser, 07/01/2014 12:48 PM

q3.png (4.79 KB) Sabine Greiser, 07/01/2014 12:48 PM

q4.png (2.63 KB) Sabine Greiser, 07/01/2014 12:48 PM

Q1 Q2 Q3 Q4
Add picture from clipboard (Maximum size: 500 MB)