How to set +1 as correct score for one of the options in a multichoice question and -0.33 as negative score for all other options. I tried putting -0.33 in "Score if chosen" under "advanced options" but its not getting saved in database.

Comments

samratmalik created an issue. See original summary.

djdevin’s picture

Category: Bug report » Support request

Hi,

You can't have decimal points, instead you should raise all your point values up to integers.

samratmalik’s picture

I was going through this negative scoring issue of quiz 6.x version at https://www.drupal.org/node/731136#comment-2866540 and it says negative scoring is possible. Can we replicate same in 7.x version?

djdevin’s picture

This isn't the same issue - you can do negative scoring, just not decimal point scoring. An integer can be negative.

samratmalik’s picture

If I change database table to float as mentioned in https://www.drupal.org/node/731136#comment-3129936 will it allow decimal negative values ? And which table do I need to modify?

djdevin’s picture

I don't recommend changing any database tables as you may not be able to upgrade Quiz later.

Quiz isn't designed to handle partial points, you should instead be using full point values.

So instead of each multichoice question being worth 1 point, they should be worth 4 points.

You should have 3/4 points instead of 0.25/1.00.

djdevin’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.