exactly what you want to do. In the activity of the lessons. You can do a question activity in sets. Or you create a section and then add a question and assign points to that question. At the end of the lesson, you can add these scores to determine a passing grade. In this way, you assign a passing grade to the student to pass the course. While examining the chapters, the student solves the questions that arise in between. If he gets a passing grade, you can evaluate the course and understand with artificial intelligence that the student has been successful.
Or, at the end of the lesson, you add a final paper, a written question. You can evaluate the incoming answer and manually give a grade or determine if it passed. You can see it as a manual evaluation in this process.