This add-on would be over the top if the quiz function was programmed into it. The ability to attach an optional quiz to the end of a lesson and immediately list it as pass (email to lesson admin, and end user.. maybe even a completion certificate in email with their name - but that's just bells and whistles) or an instant fail with emailing as above and the ability to re-take the test, if that's allowed, would just kill it.
If that requires someone to sponsor that development, I would consider doing so if it were reasonable. It would give XF one more tool to compete with platforms like Wordpress that we need to use if we want a full fledged Lessons addon.
Perhaps we could work together on sponsoring an assessment element. A multiple choice quiz is just one element that is standard on LMS programmes.
It's vital for us to only allow lesson 2 to unlock after successful completion of lesson 1. We also need the option for varied results to result in varied outcomes, from an educational standpoint we would need fine grade options. e.g. passing grade 40% (4 out of 10 questions correct) would enable them to continue. Different outcomes could direct to different lessons, e.g. if they fail, perhaps it could recommend lesson 1a (a foundation module), if they score 100% perhaps they could go directly to lesson 3.
With retries, the maximum number of attempts should be adaptive lesson by lesson/ course by course, as people will have different requirements.
i.e. Maybe some will allow 3 retakes for example; developing the quiz/assessment would require the option to have question banks that can be randomly generated, similar to placeholder text in forum titles, so 2 people doing the same quiz would get a randomised set of questions each time otherwise it would be pointless.
For instance for each lesson there could be a quiz with retakes, then the end of the course could include an assessment that is pass/fail. I intend to develop a TEFL course using this so will need a few options. Including options for multiple choice, short answer, and upload a file (e.g. essay/poster/video) and this can either be automatically marked or generate a forum post or email for the teacher to review.
We already use the advanced forms add-on, so it is essentially incorporating that into this add-on. I could adapt the existing add-on using user-upgrades but that seems like it would make the system more complex than it needs to be and is based on completing the form rather than correct responses.