473,473 Members | 1,534 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Online Exam

90 New Member
I am developing a online exam project in that I have a table which has questions and every question has different marks.I am selecting questions in a random manner using newid(), now I am facing with a problwm , the problem is the questions are selected even after it reaches total (100) marks and also it the total comes to 98 the system selects a 3 mark question hence the total reaches more than 100.how to solve this problem. I have 1,2,3,4 mark questions.
Plz experts help me out to solve this problem

thanks in advance
raghul
Nov 21 '07 #1
3 2008
kenobewan
4,871 Recognized Expert Specialist
More information about your platform and how far you got so far.
Nov 21 '07 #2
raghulvarma
90 New Member
More information about your platform and how far you got so far.
I have almost compleated my project, my platform is asp.net . and my back end is sql. I got the logic also for it , it goes like this
The max mark that has been assigned to a question is 4 so by reducing 4 from
100 we get 96, then when it reaches 96 we need to check 4 the condition ,
if 96 (select a 4 mark question)
else if 97 (select 3 mark question)
else if 98 (select 2 mark question)
if 99 (select a 1 mark question)
is there any other logic to do ???

now I have got another doubt
As I am selecting the questions in random when I press previous button then it has to go to the exaxt previous question. ie when questions are like 5,6,2,8 then when the user is in 8th question then he has to go back like 2,6,5.
can we get the history ?
I tried with session storing the question number in a label and getting that but the problem is it would go only to the (n-1) and not to (n-2) , and so on

help me out thanx in advance
Nov 23 '07 #3
Shashi Sadasivan
1,435 Recognized Expert Top Contributor
I have almost compleated my project, my platform is asp.net . and my back end is sql. I got the logic also for it , it goes like this
The max mark that has been assigned to a question is 4 so by reducing 4 from
100 we get 96, then when it reaches 96 we need to check 4 the condition ,
if 96 (select a 4 mark question)
else if 97 (select 3 mark question)
else if 98 (select 2 mark question)
if 99 (select a 1 mark question)
is there any other logic to do ???
You could use an switch case statement, but it the logic still remains the same.

now I have got another doubt
As I am selecting the questions in random when I press previous button then it has to go to the exaxt previous question. ie when questions are like 5,6,2,8 then when the user is in 8th question then he has to go back like 2,6,5.
can we get the history ?
I tried with session storing the question number in a label and getting that but the problem is it would go only to the (n-1) and not to (n-2) , and so on

help me out thanx in advance
Instead of using a invisible label why not have a session variable?
At this time we still do not know what platform you are working on.
I will assume that you creating this as an ASP .Net application.
in which case, you can use a session variable of type List<int>
and keep adding the question number as you progress the questions. they will be stored in the same sequence you add them, so u can iterate the opposite way. This will however not work with .Net 1.1 , in which case you would have to use vector or arrays.
Nov 23 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Vanessa BJ | last post by:
Hi. I am an amateur Java enthusiast. I currently work as a carpenter and I moonlight on the weekends as a photographer. I'm trying to transition a career change. Which Java exam should I start...
0
by: RS | last post by:
Hi, I am looking for some open source online test/exam system using ASP.net and SQL server 2000. Does anyone have any suggestion? Thank you! RS
29
by: Mr Newbie | last post by:
Im going to be looking to do this exam fairly soon, but ive done a couple of practice tests and found them to be a bit tricky in as much as you have to REALLY READ the questions carefully else they...
0
by: jack | last post by:
Hi all, Im planning to take dot net certification exam. i want to know whether is there any site which helps you in preparing for exam. like taking line test for 30 mins so that before taking...
0
by: allonlineexam | last post by:
Dear Friends, I am doing exam for other person. I am doing all online exam. like....... Microsoft MCP,MCAD, MCSE, MCSA, MCDBA, MCDST. Cisco
7
by: php.ajay | last post by:
Hi I have a great problem. I have successfully completed ONLINE EXAM project.But Finally client asked "I want to include time for my site."O.K I tried But every time when i click on next question...
6
by: Freshers Jobs | last post by:
Please try to this exam : http://idealbench.com
3
by: honeya51 | last post by:
here is the code for my jsp <%@ page import="java.sql.*,java.io.*,java.util.*" %> <%! Connection con = null; PreparedStatement pst = null; ResultSet rs=null; %> <%
3
by: Limno | last post by:
Hi, Can anyone suggest me how to do online exam in php, Here my doubt is, i displayed 1st question with 4 options. But if user click next button, i need to display 2nd question, then 3rd.... goes...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.