Calculated questions
Description
Attachments
is depended on by
is duplicated by
is related to
Activity

Aaron Zeckoski February 6, 2012 at 8:35 AM
I think there might need to be some kind of conversion script here, not sure how that is handled with samigo exactly

Aaron Zeckoski February 6, 2012 at 8:34 AM
Patch applied to trunk

Aaron Zeckoski February 6, 2012 at 8:34 AM
You will have to run some DDL in order to make this patch/item type work (use the right one for your database type):
– // CALCULATED_QUESTION (Mysql DDL below)
INSERT INTO SAM_TYPE_T (TYPEID , AUTHORITY, DOMAIN, KEYWORD, DESCRIPTION, STATUS, CREATEDBY, CREATEDDATE, LASTMODIFIEDBY, LASTMODIFIEDDATE)
VALUES (15, 'stanford.edu', 'assessment.item', 'Calculated Question', NULL, 1, 1, SYSDATE(), 1, SYSDATE());
– // CALCULATED_QUESTION (Oracel DDL below)
INSERT INTO SAM_TYPE_T ("TYPEID" ,"AUTHORITY", "DOMAIN", "KEYWORD", "DESCRIPTION", "STATUS", "CREATEDBY", "CREATEDDATE", "LASTMODIFIEDBY", "LASTMODIFIEDDATE")
VALUES (15, 'stanford.edu', 'assessment.item', 'Calculated Question', NULL, 1, 1, SYSDATE, 1, SYSDATE);
– // CALCULATED_QUESTION (HSQL DDL below)
INSERT INTO SAM_TYPE_T ("TYPEID" ,"AUTHORITY", "DOMAIN", "KEYWORD", "DESCRIPTION", "STATUS", "CREATEDBY", "CREATEDDATE", "LASTMODIFIEDBY", "LASTMODIFIEDDATE")
VALUES (15, 'stanford.edu', 'assessment.item', 'Calculated Question', NULL, 1, 1, SYSDATE, 1, SYSDATE);

Aaron Zeckoski February 6, 2012 at 8:26 AM
Actual patch as applied to trunk: sam_SAM-1139-trunk.patch.txt

Aaron Zeckoski February 6, 2012 at 8:21 AM
Actual applied trunk patch: sam_SAM-1139-trunk.patch.txt
At the moment the calculated question type is missing in Samigo, i.e. the ability to have questions which contains variables, a method of setting the range of those variables and the number of questions to be generated of that type.
eg. what is {x} + {y} where 0 < x < 100 and 0 < y < 50
i.e., integration with equation editors.