davidi1
asked on
Web based Test in ASP
Team -
I am looking for examples / demo codes for Web based tests in asp. I have googled alot & found alot of websites like planet-source-codes, hotscripts etc., bt i couldnt find anything which i am looking for.
what i want is,
Web based test. Admin should be able to create tests, set time limit & also can assign to users.
Users need to finish the test within time.
can anyone send me a demo codes for the same pls.
Thanks
I am looking for examples / demo codes for Web based tests in asp. I have googled alot & found alot of websites like planet-source-codes, hotscripts etc., bt i couldnt find anything which i am looking for.
what i want is,
Web based test. Admin should be able to create tests, set time limit & also can assign to users.
Users need to finish the test within time.
can anyone send me a demo codes for the same pls.
Thanks
ASKER
@CarzKiss - you've helped me alot for my previous posts..,
Yes. I am looking for Classic ASP only.
What is your ASP Classic skill level = Intermediate
SQL Server = Intermediate
JQuery / AJAX = Beginner.
I am using SQL Server.
What i have done so far is,
I have created a table called "Test_Main" with the following fields,
CREATE TABLE [dbo].[Test_Main](
[TestID] [numeric](18, 0) IDENTITY(5000,1) NOT NULL,
[SubmitterNT] [varchar](255) NULL,
[SubmitterName] [varchar](255) NULL,
[SubmitDate] [smalldatetime] NULL,
[SubmitProcess] [varchar](255) NULL,
[SubmitSubProcess] [varchar](255) NULL,
[TestName] [varchar](255) NULL,
[TestCategory] [varchar](255) NULL,
[TestLevel] [varchar](255) NULL,
[MaxQuestions] [varchar](255) NULL,
[EachQuestionScore] [varchar](255) NULL,
[Timelimit] [varchar](255) NULL,
[TestStatus] [varchar](255) NULL
) ON [PRIMARY]
GO
In the above table, user inputs "all except EachQuestionScore as its calculated based on "100/MaxQuestions"
so a Test is created. Then I am asking the user to create questionarie for the same.
query as follows:
CREATE TABLE [dbo].[Test_Details](
[QuestionID] [numeric](18, 0) IDENTITY(1000,1) NOT NULL,
[TestID] [numeric](18, 0) NULL,
[Question] [text] NULL,
[Answer1] [varchar](255) NULL,
[Answer2] [varchar](255) NULL,
[Answer3] [varchar](255) NULL,
[Answer4] [varchar](255) NULL,
[Answer5] [varchar](255) NULL,
[CorrectAnswer] [varchar](255) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
I am able to add questions also.., However what i want to do is, i want to display all questions in 1 page(which i can still do in classic asp). But i dont know how to capture and save those inputs in sql as the table is dynamic. and also the catch here is, once the time limit is over, test should finish and marks to be graded for the questions attended.
please help
Yes. I am looking for Classic ASP only.
What is your ASP Classic skill level = Intermediate
SQL Server = Intermediate
JQuery / AJAX = Beginner.
I am using SQL Server.
What i have done so far is,
I have created a table called "Test_Main" with the following fields,
CREATE TABLE [dbo].[Test_Main](
[TestID] [numeric](18, 0) IDENTITY(5000,1) NOT NULL,
[SubmitterNT] [varchar](255) NULL,
[SubmitterName] [varchar](255) NULL,
[SubmitDate] [smalldatetime] NULL,
[SubmitProcess] [varchar](255) NULL,
[SubmitSubProcess] [varchar](255) NULL,
[TestName] [varchar](255) NULL,
[TestCategory] [varchar](255) NULL,
[TestLevel] [varchar](255) NULL,
[MaxQuestions] [varchar](255) NULL,
[EachQuestionScore] [varchar](255) NULL,
[Timelimit] [varchar](255) NULL,
[TestStatus] [varchar](255) NULL
) ON [PRIMARY]
GO
In the above table, user inputs "all except EachQuestionScore as its calculated based on "100/MaxQuestions"
so a Test is created. Then I am asking the user to create questionarie for the same.
query as follows:
CREATE TABLE [dbo].[Test_Details](
[QuestionID] [numeric](18, 0) IDENTITY(1000,1) NOT NULL,
[TestID] [numeric](18, 0) NULL,
[Question] [text] NULL,
[Answer1] [varchar](255) NULL,
[Answer2] [varchar](255) NULL,
[Answer3] [varchar](255) NULL,
[Answer4] [varchar](255) NULL,
[Answer5] [varchar](255) NULL,
[CorrectAnswer] [varchar](255) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
I am able to add questions also.., However what i want to do is, i want to display all questions in 1 page(which i can still do in classic asp). But i dont know how to capture and save those inputs in sql as the table is dynamic. and also the catch here is, once the time limit is over, test should finish and marks to be graded for the questions attended.
please help
I will have to think on this one, no sleep as of yet, so, brain is not functioning properly right now....
I have also started to work on a project like this. I can tell you this can be one of those things that sounds easy at first until you get into it becomes pretty complex.
First with timing, you can do this server side with vbscript. The advantage is it can not be manipulated by the savy test taker. However, this eats up your cpu time. Javascript/jquery timer will not do this but could potentially be manipulated by the user. Part of your decision making
At the very least, your timing code will look like below http://jsfiddle.net/RCm8m/
Of course enhancements will include a timer, showing the next question etc. As far as the Admin authoring questions and setting answers and time limits for each question that is simply updating/adding data in one area and displaying data in the test area.
Although I would say using ajax to rotate the questions would better although add a little more complexity.
Take a look at how this site works, http://smarterer.com/. Their process is cool. Unfortunately, they use crowd sourced questions and answers that I found wrong. It is a good exercise to see what you like and don't like.
First with timing, you can do this server side with vbscript. The advantage is it can not be manipulated by the savy test taker. However, this eats up your cpu time. Javascript/jquery timer will not do this but could potentially be manipulated by the user. Part of your decision making
At the very least, your timing code will look like below http://jsfiddle.net/RCm8m/
<div id="question1">testing....1..2...3</div>¿
<script>setTimeout(function() {
$('#question1').fadeOut('fast');
}, 1000); //¿¿¿¿¿</script>
Of course enhancements will include a timer, showing the next question etc. As far as the Admin authoring questions and setting answers and time limits for each question that is simply updating/adding data in one area and displaying data in the test area.
<div id="<%=qID%>"><%=question%></div>¿
<script>setTimeout(function() {
$('#question1').fadeOut('fast');
}, 1000); //¿¿¿¿¿</script>
Although I would say using ajax to rotate the questions would better although add a little more complexity.
Take a look at how this site works, http://smarterer.com/. Their process is cool. Unfortunately, they use crowd sourced questions and answers that I found wrong. It is a good exercise to see what you like and don't like.
ASKER
@CarrzKiss - any updates on this?
I am so sorry David, I am completely tied up with some issues on our mail server and one of our sites.
@padas, can you assist David further with his issue?
@padas, can you assist David further with his issue?
ASKER
@padas - any updates?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Questions:
What is your ASP Classic skill level =
SQL Server =
JQuery / AJAX =
I would not design a script like this with Access Database, I would use SQL Server.
Use JQuery for the time limit, as well as other functions within the site.
There are all sorts of possibilities on doing this.
I am currently working on one similar to this as well.
It is not really that hard, though I have had to stop to work on other projects,
Hoping to jump back into it within the next week.
I can give you some pointers, if you can answer the questions above.
However, there are some scripts called: School Scripts, but they are old, and the coding really sucks, and I would hate to dig them up again, as they were made around 1999-2001, and trust me when I say, you do not want to learn for that type of crap coding.
Carrzkiss