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

Raymond Batchelor batchelo at sfu.ca
Fri Oct 5 14:05:40 EDT 2012


I  think the root of the problem I last described is that, in the GUI Editor, 
the numbubbles template is included in the "Parameters for a response" dropbox, but IS NOT included in the dropbox choices for "Parameters for a part".

Possibly people who use the GUI editor might get tripped up over this?

Ray



----- Original Message -----
From: "Raymond Batchelor" <batchelo at sfu.ca>
To: "Discussion list for LON-CAPA users" <lon-capa-users at mail.lon-capa.org>
Sent: Friday, 5 October, 2012 10:59:46
Subject: Re: [LON-CAPA-users] Number of bubbles for randomized exam


I believe also that the variable MUST be defined in the Perl script.
If I try to evaluate the function directly in the "outtext" block eg

<startouttext /><display>&EXT('resource.0.numbubbles')</display><endouttext />

It does not return the correct value, presumably because the perl script is parsed at the appropriate time, whereas funciont displayed in the outtext is not.


Also, if the author defines the parameter numbubbles in the published problem, then that parameter will receive an ID number such as "11", even for a single part problem.

Thus if there is no part0 parameter value defined in PARM then you get nothing (unless you request &EXT('resource.0_11.numbubbles).
If, in PARM, you choose to display "all parts" (which is now a misnomer), you will see that the author defined parameter is for
part0_11 and not for part0.

I noticed, awhile back, that author-set parameters, such as tolerances, could not be overridden for single part problems by setting the part0 value in PARM because the author set value for part0_11 takes precedence.  Since this is not really a new part I think there may be a basis for a bug here?


=-)

Ray




----- Original Message -----
From: "hkng" <hkng at fsu.edu>
To: "Discussion list for LON-CAPA users" <lon-capa-users at mail.lon-capa.org>
Sent: Friday, 5 October, 2012 10:05:36
Subject: Re: [LON-CAPA-users] Number of bubbles for randomized exam


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 > 
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 
http://mail.lon-capa.org/ mailman/listinfo/lon-capa- users 




_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users at mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users at mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users


More information about the LON-CAPA-users mailing list