A line is drawn on a grid through two labelled points. The student works out its slope, the change in y divided by the change in x, and then gives the slope of another line that is parallel to it (the same slope) or perpendicular to it (flip the fraction and change its sign). The answer is typed as a whole number or a fraction, or is the Undefined button.
The usual slips are subtracting the coordinates in different orders, forgetting to simplify, and flipping the fraction without changing the sign. About one line in eight is flat and one in eight goes straight up, so the answer can be 0 or undefined. Some questions also say the new line passes through another point, which doesn't change its slope at all. The working draws the run and the rise on the grid, then the new line.

Numbers&Me is free. Sign up to practise more, or set it as homework in under a minute, and it marks itself.