# Integrating WeBWorK into Textbooks: Sample Exercises

## Section2.2Subject Area Templates

This section samples the subject area template problems found on the WeBWorK wiki at http://webwork.maa.org/wiki/SubjectAreaTemplates.

### Checkpoint2.2.1.Answer is a number or a function.

1. Suppose the correct answer is $${-8}\text{.}$$
2. Suppose the correct answer is $$\displaystyle {\frac{7-8x^{7}}{x}}\text{.}$$
$$-8$$
$$\frac{7-8x^{7}}{x}$$
Solution.
Solution explanation goes here.

### Checkpoint2.2.2.Answer is a function with domain issues.

1. Suppose the correct answer is $$\displaystyle {\sqrt{x-2}}\text{.}$$
2. Suppose the correct answer is $$\displaystyle {\ln\!\left(\left|\frac{x}{x-2}\right|\right)}\text{.}$$
$$\sqrt{x-2}$$
$$\ln\!\left(\left|\frac{x}{x-2}\right|\right)$$
Solution.
Solution explanation goes here.

### Checkpoint2.2.3.Multiple Choice by Popup, Radio Buttons, or Checkboxes.

My favorite color is
• Red
• Blue
• Green
.
My favorite color is
• Red
• Blue
• Green
• None of these
My favorite color is
• Red
• Blue
• Green
• None of these
$$\text{Blue}$$
$$\text{Blue}$$
$$\text{Blue}$$
Solution.

### Checkpoint2.2.4.

There is math in each option for this question. Which expression is not a polynomial?
• $$\displaystyle x$$
• $$\displaystyle x^2$$
• $$\displaystyle 2^x$$
$$\text{Choice 3}$$
Solution.

### Checkpoint2.2.5.Tables.

A table with minimal XML source.
 A B C D E F G H I
Finish this table.
 1 two $$\lfloor\pi\rfloor$$ $$\text{I}+\text{I}$$ $${}+\text{I}+\text{I}$$ six $$2^3-1$$ VIII
$$5$$
$${\left(0,0\right)} = {}$$ (1 × 2 array)
$${\left\lt 1,2\right>} = {}$$ (1 × 2 array)
$${\left[\begin{array}{c}3\\4\\\end{array}\right]} = {}$$ (2 × 1 array)
$${\left[\begin{array}{cc} 1 \amp 2\cr 3 \amp 4 \end{array}\right]} = {}$$ (2 × 2 array)