sectionWideCheckWork, and other things like maxNumAttempts

I normally like to use sectionWideCheckWork with forceIndividualAnswerColoring in order to move the answer checking out from the middle of math expressions or tables or something. So the way it works right now is great for that, and I don’t want that to change!

But it appears to me that if someone had maxNumAttempts on an answer, then that attribute is still in effect, but there’s no longer any indication of that fact until after the 2 wrong submissions.

<problem sectionWideCheckWork>
  <title>Multiple questions</title>
    <p><answer maxNumAttempts="2"><label>Enter <m>x</m></label>x</answer></p>
    <p><answer><label>Enter <m>y</m></label>y</answer></p>
    <p><answer><choiceInput inline><label>Choose</label>
      <choice>Option 1</choice>
      <choice credit="1">Option 2</choice>
      <choice>Option 3</choice>
    </choiceInput></answer></p>
</problem>

Now, perhaps someone shouldn’t be using that on only one answer and also using sectionWideCheckWork, so I also tried putting it on all 3 answers. Same thing though - no indication. Can we add an indication after the Check Work button if all the answers have the same number of limited attempts? Maybe a warning to authors if different answers have different number of limited attempts?

A couple other things:

  1. It appears to me that students actually get n+1 attempts at x if they leave it blank n times before trying to enter anything for x. Which somehow accomplishes the feat of feeling both like less than 2 attempts (1 attempt at actually answering) and more than 2 attempts (n+1 total attempts) simultaneously! Maybe that’s a good argument for limiting the whole thing to the smallest number of attempts on any answer?
  2. If someone is using sectionWideCheckWork so as not to reveal which parts are correct, the color behavior and percentage shown seem a little off. It is red and incorrect if none are correct, but updates to 33% and gold when one is correct. With infinite attempts, why wouldn’t a student just try one part at a time and watch for the percentage to change? Is there a way to not show the percentage until it’s all correct?

Again, it works great for what I want with forceIndividualAnswerColoring. I also know how to get the behavior I’m describing using Inputs and a single answer. I’m wondering how well sectionWideCheckWork works for other use cases since limited attempts aren’t shown and the percentage correct is, and I have to use an additional property to get the behavior I like.

Oh boy, I never thought about the interaction between sectionWideCheckWork and maxNumAttempts. I wonder if we just add a maxNumAttempts attribute as a sibling to sectionWideCheckWork. If there is a child answer with a smaller maxNumAttempts, then we just slap your wrist and say “don’t do that.” If a child has maxNumAttempts or a larger one, then it effectively gets the small maxNumAttempts from the sectionWideCheckWork button.

We don’t have a concept of turning off the effective matchPartial that comes with having separate answer blanks. If you get 1 of 3 answers correct, then you’ll get 33%. The credit awarding mechanism is oblivious to sectionWideCheckWork; sectionWideCheckWork just clicks all the (hidden) check work buttons for each answer.

The behavior of the section-wide check work button explains the strange behavior you observed with numMaxAttempts: if you don’t change the response entered in a given answer blank, its (hidden) check work button is still at “Correct” or “Incorrect”, so clicking it doesn’t do anything or count as an attempt. In your example, n-1 of these submissions didn’t do anything (as the response wasn’t changed and the hidden check work button was stuck at Incorrect). The total number of allowed attempts was n-1+2 = n+1.

I don’t know of a way to keep the credit at zero for multiple answer blanks until they are all correct if one is merging them with a sectionWideCheckWork. The way to do that is to use a single <answer> and put that corresponding logic inside an <award><when> of that <answer> (and you mention you know how to do that).

Would people want to have a maxNumAttempts attribute to go with the sectionWideCheckWork button? Are there other changes that would make a sectionWideCheckWork button useful more generally?

I think so. I haven’t used it much in the past but this would make it more likely for me to use it. Whenever I needed to have a restricted number of attempts in a question, I changed the activity and placed that question outside the section as a way around the issue and eventually stopped using sectionwidecheckwork as it got too cumbersome to have to keep changing things.

Thanks for bringing this up Chrissy.

I would definitely want that! It will make it much easier to quickly adapt problems written by others.

I think in my ideal world, there would be a difference between credit actually being at zero and the partial credit being awarded but not displayed. Instead just a message or icon indicating that not all parts are correct, yet. Maybe that’s a distinction without a difference, since in PreTeXt/Runestone, students could always refresh the page and see their score on the problem. And if an author really cared about it, they should either limit total attempts to prevent students going answer by answer or use inputs with a single answer instead of sectionWideCheckWork.

I can’t think of a way of adding the ability to “display just zero credit until 100%” that wouldn’t be confusing.

Also, we just published a dev release that includes maxNumAttempts for a sectionWideCheckWork. (You can specify that the version be 0.7dev in the Settings panel to try it out.)

Let us know what you think of this feature and if there are any flaws that need to be fixed before we release it more broadly.