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

hkng hkng at fsu.edu
Fri Oct 5 13:05:36 EDT 2012


Hi,

I guess the bottom line is that the resource has to be published for the
call to work. Was testing the call on an unpublished problem. Also, in the
construction space, there is no option to set the number of bubbles.

Thanks,
-hk


On Fri, Oct 5, 2012 at 12:36 PM, Stuart Raeburn <raeburn at msu.edu> wrote:

> Hi,
>
> The resource does not need to be in a course if you include the numbubbles
> parameter in the problem, e.g.,
>
> <parameter name="numbubbles" id="12" type="int_pos" default="4"
> description="Number of bubbles in exam mode" />
>
> and publish the problem.
>
> Thereafter when you view either the published resource or the resource in
> Construction Space you will see the number of bubbles displayed.  My
> experience was that the value for numbubbles was not interpolated into the
> display within Construction Space until after publication.
>
>
> Stuart Raeburn
> MSU LON-CAPA group
>
>
> Quoting hkng <hkng at fsu.edu>:
>
>  Hi, does the resource has to be in a course before this works? It doesn't
>> return any value in the construction space? -hk
>>
>>
>> On Fri, Oct 5, 2012 at 12:04 PM, Stuart Raeburn <raeburn at msu.edu> wrote:
>>
>>  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
>>>>
>>>>
>>>
>>> ______________________________****_________________
>>> LON-CAPA-users mailing list
>>> LON-CAPA-users at mail.lon-capa.****org <LON-CAPA-users at mail.lon-capa.**org<LON-CAPA-users at mail.lon-capa.org>
>>> >
>>> http://mail.lon-capa.org/****mailman/listinfo/lon-capa-****users<http://mail.lon-capa.org/**mailman/listinfo/lon-capa-**users>
>>> <http://mail.lon-capa.**org/mailman/listinfo/lon-capa-**users<http://mail.lon-capa.org/mailman/listinfo/lon-capa-users>
>>> >
>>>
>>
>>
> ______________________________**_________________
> LON-CAPA-users mailing list
> LON-CAPA-users at mail.lon-capa.**org <LON-CAPA-users at mail.lon-capa.org>
> http://mail.lon-capa.org/**mailman/listinfo/lon-capa-**users<http://mail.lon-capa.org/mailman/listinfo/lon-capa-users>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.lon-capa.org/pipermail/lon-capa-users/attachments/20121005/306b919f/attachment-0001.html>


More information about the LON-CAPA-users mailing list