Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

quiz

Status
Not open for further replies.

slasticar

Technical User
Nov 1, 2006
12
BA
I want to make one quiz which will start whene I click button test in the movie input.dir.
Name of the quiz movie is test.dir and he has file questions.xml where I put 10 question for quiz.

First question :
1. I want to put in this file questions.xml 40 questions and randomize 10 questions but I dont know how to do this.

Second question

2. Whene I try incorporate this movie with all movie which I made and whene I want to see my project whene I click on test.dir it is write me script error.
Everything is good whene I try do this from the movie input.dir but in the finally project i have this message error.

Thak you for you help.
 
I would put 40 questions in a Prop List. Then you can pick random 10 from the list using the method I posted in other thread. Do you need help parsing your XML and creating a Prop List?

Kenneth Kawamoto
 
<?xml version="1.0"?>
<quiz>
<question>
<questionText> Kapacitet radne memorije racunala izrazava se u ?</questionText>
<incorrect> Hz</incorrect>
<incorrect> Milisekundama</incorrect>
<correct>KB ( kilobajtima) </correct>
<incorrect>Niti jedan od odgovora nije tacan</incorrect>
</question>
<question>
<questionText>ROM je memorija</questionText>
<correct>koja cuva sadrzaj i nakon iskljucenja racunala</correct>
<incorrect>koja trenutno memorira aplikacijske programe</incorrect>
<incorrect>koja ima promjenjiv kapacitet</incorrect>
<incorrect>radna memorija racunala</incorrect>
</question>
<question>
<questionText>Hard disk je?</questionText>
<incorrect>glavna memorija racunala u koju se privremeno memoriraju podaci i programi</incorrect>
<correct> sekundarna memorija velikog kapaciteta</correct>
<incorrect>ROM memorija za trajno pohranjivanje programa</incorrect>
<incorrect>Komunikacijski uredjaj</incorrect>
</question>
<question>
<questionText>Ink-jet je vrsta?</questionText>
<incorrect> sekundarnih memorija</incorrect>
<incorrect>vrpca za memoriranje vecih kolicina podataka</incorrect>
<correct>tintnog stampaca</correct>
<incorrect>monitora</incorrect>
</question>

<question>
<questionText> Aritmeticko logicka jedinica je osnovna komponenta: ?</questionText>
<incorrect>memorije sa izravnim pristupom u koju se smjestaju podaci i programi</incorrect>
<correct>sredisnje procesne jedinice (CPU)</correct>
<incorrect>Kontrolne jedinice </incorrect>
<incorrect>Svi odgovori su tacni</incorrect>
</question>
<question>
<questionText>Kontrolna jedinica je osnovna komponenta ?</questionText>
<incorrect>aritmeticko logicke jedinice</incorrect>
<incorrect>memorije sa izravnim pristupom u koji se smjestaju podaci</incorrect>
<correct>sredisnje procesne jedinice </correct>
<incorrect>nista od navedenog</incorrect>
</question>
<question>
<questionText>Jedan megabajt ( 1 MB) predstavlja ?</questionText>
<incorrect>1024 bajtova</incorrect>
<correct>1048576 bajtova</correct>
<incorrect>32768 bajtova </incorrect>
<incorrect>256 bajtova</incorrect>
</question>
<question>
<questionText>Razlucivost monitora ovisi o </questionText>
<incorrect>operacijskom sistemu</incorrect>
<correct>grafickoj kartici</correct>
<incorrect>procesoru </incorrect>
<incorrect>nista od navedenog</incorrect>
</question>
<question>
<questionText>Na disketu (3,5 incha) je moguce pohraniti ?</questionText>
<incorrect>1 MB ( mega bajta)</incorrect>
<correct>1,44 MB</correct>
<incorrect>2 MB </incorrect>
<incorrect>1,2 MB</incorrect>
</question>
<question>
<questionText>Za pohranjivanje 2 MB podataka potrebne su</questionText>
<incorrect>4 diskete</incorrect>
<correct>2 diskete</correct>
<incorrect>1 disketa ( 3,5 incha) </incorrect>
<incorrect>3 diskete</incorrect>
</question></quiz>
 
Looks good, but if possible I would like to structure it slightly differently:
Code:
<?xml version="1.0"?>
<quiz>
	<question id="1">
		<questionText>Kapacitet radne memorije racunala izrazava se u ?</questionText>
		<answers correct="3">
			<answer id="1">Hz</answer>
			<answer id="2">Milisekundama</answer>
			<answer id="3">KB ( kilobajtima)</answer>
			<answer id="4">Niti jedan od odgovora nije tacan</answer>
		</answers>
	</question>
	<question id="2">
		<questionText>ROM je memorija</questionText>
		<answers correct="1">
			<answer id="1">koja cuva sadrzaj i nakon iskljucenja racunala</answer>
			<answer id="2">koja trenutno memorira aplikacijske programe</answer>
			<answer id="3">koja ima promjenjiv kapacitet</answer>
			<answer id="4">radna memorija racunala</answer>
		</answers>
	</question>
	...
</quiz>
If this is not feasible then we can still use the one you have. What do you think?

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top