expertiza / reimplementation-back-end

MIT License
1 stars 108 forks source link

E2416. Reimplement the Question hierarchy #83

Open vishwagandhi1610 opened 7 months ago

vishwagandhi1610 commented 7 months ago

The Question class and its subclasses are used to implement all rubric items, quiz questions, and survey questions in Expertiza. Here is the hierarchy.

  1. Choice question
    • Scored question a. Scale [√] b. Criterion [√]
    • Unscored question a. Dropdown [√] b. MultipleChoice c. CheckBox [√] [should this be a Scored question?}
  2. TextResponse a. TextArea [√] b. TextField [√]
  3. UploadFile [√] Dropdown, MultipleChoice, and Scale questions have a lot in common: you display the alternatives and let the user choose one of them. They also differ, in that only Scale is required to have a numeric sequence of choices; Dropdown and MultipleChoice may, but also may have selections that don’t correspond to anything numeric. We would like to write a single piece of code to display all three types of questions.