[LON-CAPA-users] Adaptive Testing
Stuart Raeburn
raeburn at msu.edu
Mon Jun 11 13:55:17 EDT 2012
Hi,
The format required in an &EXT() call, e.g., call to retrieve the
submission to a response item in a .library file, imported into a
problem part, is as follows:
&EXT('user.resource.resource.PartId.ImportId_ResponseId.submission')
Note the underscore used to join the ImportId and the ResponseID in
the response identifier, where the InportId is the id attribute for
the import tag which imports the library, and ResponseId is the id
attribute of the stringresponse tag in the library file itself.
Consider the following example:
Problem file (somename.problem)
<problem>
<parameter name="ordered" id="14" type="string_yesno" default="yes"
description="Show Parts One-at-a-Time" />
<script type="loncapa/perl">
$str = &EXT('user.resource.resource.first.stulib_sometext.submission');
</script>
<part id="first">
<import id="stulib">/res/raeburn/sturaeburn/06112012userslist.library</import>
</part>
<part id="second">
<startouttext />You previously entered: $str
<br />
Explain why:<endouttext />
<essayresponse id="elaborate">
<textfield></textfield>
</essayresponse></part>
</problem>
Library file: 06112012userslist.library
<library>
<startouttext />Type something<endouttext />
<stringresponse answerdisplay="Thanks" answer="/.+/" id="sometext" type="re">
<textline readonly="no"></textline>
</stringresponse>
</library>
Stuart Raeburn
MSU LON-CAPA group
Quoting "Mills, Douglas G" <dmills at illinois.edu>:
> Hi All,
>
> We touched briefly on the idea of Adaptive testing during the
> conference a couple of weeks ago (and it was good seeing those of
> you who could make it). Since then, a real-world interest has arisen
> here and I've been exploring a bit. I'm working on a proof of
> concept prototype just using addition, subtraction, multiplication
> and division problems, with each type of problem in a library and
> showing one problem part at a time conditional on completion of the
> previous part in hopes that I can on the fly change which library is
> being loaded depending on how the user did on the previous
> question. A challenge I am facing right up front is whether or not
> the &EXT functions can be used to access these problem parts which
> exist inside library items. Any thoughts? Am I totally barking up
> the wrong tree here? Any adivce?
>
> Thank you,
>
> Doug
>
> Douglas Mills
> Director of Instructional Technologies
> Department of Chemistry
> University of Illinois
> dmills at illinois.edu
> (217) 244-5739
More information about the LON-CAPA-users
mailing list