By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,706 Members | 1,105 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,706 IT Pros & Developers. It's quick & easy.

where shoule store the questions and answers

P: n/a
I have to design a "Online Test Application" and application is going
to display question and answers.All the questons are objective type so
there is four answer for each question.
My Question is where I shuld store the questions and answers. and how
application can pick randomly question. right now I have all question
in a text file.

Please give me suggestion. I am using C# and asp.net for this.
Regards,
Sukh.

Jun 14 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"Sukh" <su*********@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
I have to design a "Online Test Application" and application is going
to display question and answers.All the questons are objective type so
there is four answer for each question.
My Question is where I shuld store the questions and answers. and how
application can pick randomly question. right now I have all question
in a text file.

Please give me suggestion. I am using C# and asp.net for this.
Regards,
Sukh.


Try SQL Server or SQL Server Express edition dbms :)

Mythran

Jun 14 '06 #2

P: n/a
You can use the text file, a XML file or a database (Access, SQL Server
Express, etc). If using files, they can be outside the assembly or embedded
inside it.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
"Sukh" <su*********@gmail.com> escribió en el mensaje
news:11**********************@i40g2000cwc.googlegr oups.com...
I have to design a "Online Test Application" and application is going
to display question and answers.All the questons are objective type so
there is four answer for each question.
My Question is where I shuld store the questions and answers. and how
application can pick randomly question. right now I have all question
in a text file.

Please give me suggestion. I am using C# and asp.net for this.
Regards,
Sukh.

Jun 15 '06 #3

P: n/a
Sukh wrote:
I have to design a "Online Test Application" and application is going
to display question and answers.All the questons are objective type so
there is four answer for each question.
My Question is where I shuld store the questions and answers. and how
application can pick randomly question. right now I have all question
in a text file.
You could have your text file formatted like
question1<tab>correct answer<tab>wrong answer 1<tab>wrong answer
2<tab>wrong answer 3
question2<tab>correct answer<tab>wrong answer 1<tab>wrong answer
2<tab>wrong answer 3
question3<tab>correct answer<tab>wrong answer 1<tab>wrong answer
2<tab>wrong answer 3

then read in each line into an ArrayList and store it in a session
variable.

To present a question, choose a random integer between 0 and your
arraylist.length-1, and separate out the parts with String.Split.
Present the potential answers in a random order. Delete the entry in the
ArrayList so it doesn't get asked again. Store the modified ArrayList
back in the session variable.

(Some people might advocate using XML for the file format.)
Please give me suggestion. I am using C# and asp.net for this.


You might want to post in a C# newsgroup instead.

Andrew

Jun 15 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.