Download ONEXP 1.2

Transcript
input1.txt
<block>
<random>
<block>
Question1
answer1q1
answer2q1
answer3q1
</block>
<block>
Question2
answer1q2
answer2q2
answer3q2
</block>
…
</block>
Now,OnExpwillrandomizetheorderofquestion‐answerblocks,butwillnotchangetheorder
ofquestionsandanswerswithineachblock.Assumeforinstancethatyouincludetherandom
tagintothefirstquestion‐answerblock,likethis:
<block>
<random>
Question1
answer1q1
answer2q1
answer3q1
</block>
ThiswouldmakeOnExpshuffletheorderofQuestionsandanswers,soyoucouldenduphaving
thequestionappearwhereananswershould.
Ofcourse,youmightwanttokeeptheorderofthequestionsfixed,butyouwanttorandomize
onlytheorderoftheanswersforeachquestion.Thiscanbeachievedlikethis:
input1.txt
<block>
Question1
<block>
<random>
answer1q1
answer2q1
answer3q1
</block>
Question2
<block>
<random>
answer1q2
answer2q2
answer3q2
</block>
…
</block>
Andofcourse,youcouldwanttorandomizetheorderofthequestionsANDtheorderofthe
answersforeachquestion.Thisisdoneasfollows:(notethatitmaytakesomethinkingto
realizewhyweneednestedblocks).
Thereisnolimitfortheembeddingofblocks.Soyoucanembedablockinablockinablockina
block…