Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 6th, 2007, 05:12 AM
Authorized User
 
Join Date: Jul 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default Online Testing System


52 point Member
 [email protected]
Joined on 05-19-2005, 1:52 PM
Posts 111
 I am building a Quiz Engine.

I have a lot of topics in which user can take the quiz.

Remember each topic has thousands of questions.

But I want 25 random questions in each attempt of user.

All is right till Now. But the Question Is.

When the user will start the quiz.

1) I need 25 random questions. One way to implement is we insert 25 questions Id in separate table or use sessions. What is the better solution?

2) I need to save the right or wrong answers which user do. And in the end check this and submit the quiz result. But where we save that results temporarilly eithere in database table or session or any thing else. What is the better solution?



 
Old December 6th, 2007, 01:14 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Hi,

Just a suggestion. I would save the 25 questions in a table with the users ID. You can save the answers in the same table as a bit for right or wrong and if its muliple choice you can save their choice in the same table with the answerID for the answer they chose.

Richard

 
Old December 10th, 2007, 12:04 AM
jomet
Guest
 
Posts: n/a
Default

Hi,
my suggestion is to use session..
it is more easy to implement..

1. if more than 100 users are connected u will get very big table
   if the user goes partial way storing data is a waste..(ie u have to
   delete unwanted data peridically)
2. if u have requirement, allowing users in multiple sessions to complete
   25 questions, u must use database
3. each fetch to db will cause some minimum time on server side
   so if u plan a faster system, u have to consider this also..

regds
Happy programming.


jomet.





Similar Threads
Thread Thread Starter Forum Replies Last Post
online clinic system project using java jay-jay ASP.NET 1.0 and 1.1 Basics 2 December 6th, 2012 12:13 PM
open source online test/exam system surendran PHP How-To 5 August 22nd, 2010 07:10 AM
Online quiz/testing application takwirira ASP.NET 1.x and 2.0 Application Design 7 March 5th, 2007 03:17 PM
Online testing System karetaker General .NET 4 January 7th, 2007 02:44 AM
How to implement Online payment System virendar23 ASP.NET 1.x and 2.0 Application Design 3 October 2nd, 2006 01:12 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.