Skip to main content
\(\newcommand{\definiteintegral}[4]{\int_{#1}^{#2}\,#3\,d#4} \newcommand{\indefiniteintegral}[2]{\int#1\,d#2} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&} \)


Some questions with quantitative answers.

Exercise1.1Adding Single-Digit Integers

A simple, but functional example to begin with. If you are just learning how to add, you can test yourself here.

That was a simple problem. Let's move on.

If you are familiar with WeBWorK, then it may be a surprise to you to be interacting with a WeBWorK problem this way, without having logged in to WeBWorK.

Exercise1.2Declaring a Problem Seed

You can also declare a seed to specify a version of any problem that has randomization. Here is the same problem, but with a seed specified.

Exercise1.3Controlling Randomness

You can code your problem with randomization, but then use a specific seed and WeBWorK's $envir{problemSeed}to override that randomization for the purposes of the version that will appear in HTML and print putput.

Exercise1.4Special Answer Checking

One of the strengths of WeBWorK is its ability to give intelligent feedback for incorrect answers.

  • There is general feedback for when the student's answer is in an entirely different ballpark from the correct answer. Try entering something like “y”.

  • There is general feedback for when the student's answer is not in the right form. Try entering “x^2*x^3”, which, right or wrong, is unsimplified.

  • And problems can be written to detect and respond to common mistakes. Try entering an answer where you multiply the two exponents (instead of adding them, which would be correct.)

Exercise1.5Using Hints

Hints can be inserted into exercises. Whether a hint is visible in the HTML depends on the value of $showHint in in the WeBWorK course that is hosting these exercises. How the hint is displayed in the pdf output is controlled in the usual way that an MBX hint is controlled.

Exercise1.6No Randomization

This problem has no randomization at all, not even if it were exported to be part of a problem set on a WeBWorK server. As such, it really doesn't need any lines of Perl code in its setup, so you have the option of skipping that part of the authoring process.

For more about problems that do not require any randomization, see the MBX Author Guide.