(Answer) (Category) LON-CAPA User Help : (Category) Authoring : (Category) Authoring Problems :
Can I create a problem which presents a choice from completely different questions?
Yes.  
e.g.  (where * = a response type, such as "radiobutton", "string", "numerical")

<randomlist show="1">
<*response id="11">
...statement and response parameters etc...
< /*response>
<*response id="12">
...statement and response parameters etc...
< /*response>
<*response id="13">
...statement and response parameters etc...
< /*response>
< /randomlist>

The above will produce a single question that is selected randomly 
from the different questions delineated by the 
<*response >< /*response> tags.


OR 

 You could put the individual problem choices in libraries -- 
and choose problem parts from selected groups:

<part id="11">
<randomlist show="1">
<import id="12">sample1.library< /import>
<import id="13">sample2.library< /import>
<import id="14">sample3.library< /import>
< /randomlist>
< /part>
<part id="15">
<randomlist show="1">
<import id="16">sample4.library< /import>
<import id="17">sample5.library< /import>
<import id="18">sample6.library< /import>
< /randomlist>
< /part>

The above will make a two-part problem where there is one library chosen from each group of three.


CAUTION: It is advisable NOT to use 

<randomlist show="1">
<part id="11">whatever< /part> 
<part id="12">whatever< /part> 
<part id="13">whatever< /part>
< /randomlist> 

as this will create multiple (redundant or useless) part numbers in PARM and SPRS and make grading and course management more difficult.



batchelo@sfu.ca
[Append to This Answer]
Previous: (Answer) Gnuplot Example 2
Next: (Answer) Equation Entry Example
This document is: http://help.loncapa.org/cgi-bin/fom?file=219
[Search] [Appearance] [Show This Answer As Text]
This is a Faq-O-Matic 2.719.
This FAQ administered by the LON-CAPA team at MSU. Submit a help request ticket to contact us.