[LON-CAPA-users] Using PartId
Guy Albertelli II
Thu, 1 Jun 2006 12:35:06 -0400 (EDT)
I don't suppose I could get you to mail this list in plain-text mode
instead of html?
> Is there a better/correct way of assigning part ids so the system
> can correctly keep score?
Part and response IDs for a .problem _must_ be staticly defined. They
cannot be variable.
They also must be unique in any one file.
The system expects the number of parts and the ids of these parts in a
.problem to be static.
It can handle the number of and the id of responses to varying, but
I'm not sure if STAT will analyze these response well.
is something like:
<foil location="random" value="true" name="foil1">
<startouttext />This statement is true.<endouttext />
<foil location="random" value="false" name="foil3">
<startouttext />This statment is false. (Ignore the paradox.)<endouttext />
Then your master .problem should work with statis parts (rather than
dynamic part ids.
(with the caveat that STAT will likely not be at all useful with these
items, but CHRT will show correct scores.)
BTW, I rewrote master.problem for better clarity:
@DirectoryArr = ("2006JanLib/question_001.library",
$probCount = $#DirectoryArr;
$seed = &random(1,1000000,1);
@DirectoryArr = &random_permutation($seed,@DirectoryArr);