Project

General

Profile

Bug #3768

Handle correct options in FE

Added by Shubham Boke 16 days ago. Updated 13 days ago.

Status:
Review
Priority:
High
Start date:
11/12/2024
Due date:
% Done:

100%

Estimated time:
0.25 h

Description

If there are multiple correct options for a given question, we save the 'Answer' data in format: <correct_option1>%^&<correct_option2>%^&<correct_option3>%^&.....
Taking example if we have the data Answer: "AA%^&DD", otherChoices: "BB%^&CC"

Current FE is showing only 3 options (answer expected from FE: 'c'):
  • a. BB
  • b. CC
  • c. AA%^&DD
    While there are expected 4 options (answer expected from FE should be: 'c, d' OR 'd, c'):
  • a. BB
  • b. CC
  • c. AA
  • d. DD

Currently FE is directly parsing the answer data as a single option. Going forward handle this type of answer data and display each option separately. The accepted answer can be any permutation of correct answers (suppose option a and c are correct): a, c and c, a should be accepted.

Also available in: Atom PDF