learn-ocaml icon indicating copy to clipboard operation
learn-ocaml copied to clipboard

Feature: Add multiple choice questions to the description page

Open Rui00Barata opened this issue 2 years ago • 0 comments

Related user(s):

No response

Related issue(s) or PR(s):

No response

Related project scope(s):

No response

The problem:

Currently, Learn-OCaml does not offer any way to implement multiple-choice (MC) questions in a way that is user-friendly and intuitive. While it is possible to use a type like type mc = A | B | C | D and have students write their answer with that type (e.g., let p1 = A), this approach has some drawbacks, mainly having to use a type to represent their answer can add an unnecessary layer of complexity and cognitive load, which can detract from the learning experience.

Wanted solution:

To address this problem, we propose adding a new feature to Learn-OCaml that allows instructors to add multiple-choice questions directly to the exercise description using HTML forms. This would provide a user-friendly and intuitive way for students to interact with MC questions without having to rely on OCaml syntax or types.

When a student submits their solution, the system would automatically read the answers from the HTML form and grade them along with the rest of the solutions. This would allow for a seamless integration of MC questions into Learn-OCaml exercises and assessments.

Considered alternatives:

No response

Additional context:

No response

Rui00Barata avatar Apr 04 '23 09:04 Rui00Barata