[LON-CAPA-users] Number of bubbles for randomized exam

Stuart Raeburn raeburn at msu.edu
Fri Oct 5 12:04:26 EDT 2012


Hi,

Your &EXT() call works for me on a single part problem (i.e., where  
partid is 0), where I have set the numbubbles parameter for either the  
resource or the enclosing folder, after importing the published  
resource into teh course, e.g.,

<script type="loncapa/perl">
$numbub = &EXT('resource.0.numbubbles');
</script>

<startouttext />
Parameter numbubbles currently set to: $numbub)
<endouttext />

will display the current value set for the parameter.

Stuart Raeburn
MSU LON-CAPA group


Quoting hkng <hkng at fsu.edu>:

> Hi,
>
> Is there a way to get the number of bubbles for a problem set in the exam
> mode? Tried
>
> &EXT('resource.partid.numbubbles') where partid is the id for the part and
> a few variants but no success.
>
> Thanks,
> -hk




More information about the LON-CAPA-users mailing list