473,386 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

uploading a question bank

HI all,
I need to post 100 questions in my website(A website relating to a acadamic institution) with each having 4 possible answers to choose from.i.e question and then below it four answers with radio buttons to choose the answer.if it is a correct answer then the score incriments else the correct answer must be shown.Please give me an idea how to handle this.i.e tell me where should be the question and answers saved and how should be they called and validated.

Sorry if it is not properly worded.Thank u
Sep 28 '08 #1
4 1359
Shashi Sadasivan
1,435 Expert 1GB
How much have you thought about it ?
please post your thoughts and we can help you finetune it.
Sep 28 '08 #2
joedeene
583 512MB
HI all,
I need to post 100 questions in my website(A website relating to a acadamic institution) with each having 4 possible answers to choose from.i.e question and then below it four answers with radio buttons to choose the answer.if it is a correct answer then the score incriments else the correct answer must be shown.Please give me an idea how to handle this.i.e tell me where should be the question and answers saved and how should be they called and validated.

Sorry if it is not properly worded.Thank u
perhaps a using a database(sql, or ms access) and like assign each question with an id, then randomize it and pull it from the database, and have a checkanswer() function that looks at the ID of the question and will check if the answer is right or not, and how to handle it? (like if its not correct it will show the correct answer and deduct the users correct answer) uhm, something like that maybe, just an idea, if u have code im sure many of us here could assist.

joedeene
Sep 28 '08 #3
perhaps a using a database(sql, or ms access) and like assign each question with an id, then randomize it and pull it from the database, and have a checkanswer() function that looks at the ID of the question and will check if the answer is right or not, and how to handle it? (like if its not correct it will show the correct answer and deduct the users correct answer) uhm, something like that maybe, just an idea, if u have code im sure many of us here could assist.

joedeene

Hi,
I was thinking of writing a xml file with all the questions and then read this file in to the page and save it to a directory.i.e to add an XML Question Bank.

Questions.xml

<?xml version="1.0"?>
<QUESTIONS bank_id="General Knowledge">

<QUESTION No="1">
What is the color of sky?
<ANSWER No="1">Red</ANSWER>
<ANSWER No="2" right="true">Blue</ANSWER>
<ANSWER No="3">Brown</ANSWER>
<ANSWER No="4">Green</ANSWER>
</QUESTION>

<QUESTION No="2">
What is the color of Grass?
<ANSWER No="1">Red</ANSWER>
<ANSWER No="2">Blue</ANSWER>
<ANSWER No="3">Brown</ANSWER>
<ANSWER No="4" right="true">Green</ANSWER>
</QUESTION>

</QUESTIONS>

How abt this??but i dont know exactly how to read this file in to the page and then validate.

Best Regards,
Goutham
Sep 29 '08 #4
Curtis Rutland
3,256 Expert 2GB
Well, if you are going to use XML, then you need to look up the System.Xml namespace. Or, if you are using .NET 3.5, you can look up LINQ to XML that will make things quite easy once you know what you are doing.

As to the rest of your question, we can't write the logic of your program for you. We can help you with coding problems, but we can't design your site.

MODERATOR
Sep 29 '08 #5

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

Similar topics

10
by: Marcus | last post by:
Quick question on how I setup my mysql database(s)... If my setup is such that I have multiple clients, and each client gets 10 tables to store their data, is it better for performance if I put...
10
by: Colleyville Alan | last post by:
I am trying to turn a short and fat (63 columns) table into one that is tall and skinny (7 columns). Basically, I am trying to create a "reverse crosstab" using a looping structure in VBA along...
8
by: codymanix | last post by:
Hi! I have a class Bank and a Class BankAccount. A Bank can contains multiple BankAccounts (logical, isn't it?). The central Bank object contains a datatable which holds the data of all...
2
by: Nikhil Patel | last post by:
I have a Jagged array that stores RoutingIDs and theirs corresponding Bank Names. I can access it as myArray. The column index indicates whether the value is RoutingID or a BankName. myArray -...
5
by: perspolis | last post by:
hi everyone In my accounting database ,there are several account like Persons,Banks,.... I design them in separated table. in your opinion ,it's better to have all in one table or separated...
13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
0
by: malcolm | last post by:
Bank Charges Refunded Free help to recover your bank or credit card charges from www.bankchargesrefunded.co.uk Its your money and its better in your pocket!
6
by: Jana | last post by:
Greetings Access Gurus! I am working on an app to send batch transactions to our bank, and the bank requires that we place an effective date on our files that is 'one business day in the future,...
2
by: cheongsiwei | last post by:
Need some helps here >.< The project i required to complete : Create a base class Bank of a bank account with member functions to allow withdrawal, deposit and calculation of balance. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.