Good morning guru,
Studying for the UML (Unified Modeling Language) multiple choice
test using an HTML page which uses Javascipt to open a separate window
with the answer displayed. I noticed that I began to know the answers,
not because I understood the subject matter, but because I
subconsciously remembered the answer's position. That is, I remembered
for instance, that the answer to question 13 was D.
So I thought what if I could programmatically change the answers positions.
That is, if the answers this time are
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
The next time I launch the page I would see
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
or some other random ordering of the answers.
This would also require a change in the answers
pages.
A step further would be to randomly order the questions.
I began to try and program this in C#. I reasoned that
I would provide the data in XML and write the output
to an aspx page. The beginnings of this are in the
attached zip file, The output is called reader3.aspx.
All it does so far is parse the answers as written in
the UML file and write them in the order provided in the XML
file to the aspx page.
I got stuck and showed this to a colleague at work who
said I should use XML serialization to create the solution.
I agree that learning XML serialization would greatly improve
the functionality of my somewhat meager knowledge of C#.
(I have done a couple of projects in XML and understand it pretty
well.)
So that is that is the project requirements to use XML serialization
and C# randomized the order of the questions and the order of
the answers within the questions and coordinate the answers to the
questions in the answer pages.