Skip to main content

Section 1 Arithmetic

Some questions with quantitative answers.

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.

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.

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.

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.)

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 PTX hint is controlled.

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 PTX Author Guide.