By default, assuming you have enabled "show marks (correctness)" in assignment controls, when when a students submits answers to a multi-answer WeBWorK problem, they will be shown correctness (right or wrong) for each part answer in a problem. In some cases (for example, a multiple answer problem), you may want to hide part correctness from the student to avoid the possibility of the student "gaming" the problem over multiple attempts.
You can hide correctness for individual part answers in a WeBWorK problem by adding the following line to the source code (PG) near the top of code:
$showPartialCorrectAnswers = 0;
A value of 0 will not mark partially correct answers. A value of 1 or the absence of this variable in the source code will show partially correct answers. Be sure to publish this change to make it visible to students.
Ignoring WeBWorK source code settings when determining whether to show partial correctness for part answers
If you want to ignore the presence of $showPartialCorrectAnswers in the source code of WeBWork problems, do the following:
- Go to the assignment and select the Settings > Feedback tab.
-
If you are currently using default controls, select the Customize button.
- Deselect Allow WeBWorK problems to specify whether to show partial correctness of answers.
- Be sure to publish the assignment if you want the changes to be available to students.
- Note: Correctness, partial or otherwise, will only be shown if "show marks (correctness)" is enabled within the assignment controls.