Skip to content

Feature: Add multiple choice questions to the description page #533

@Rui00Barata

Description

@Rui00Barata

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions