Showing new Question on pressing NEXT button in a quiz software

Hi.....

Scenario

I want to develop an ONLINE TESTING software.

I am bit doubtful about the answer section of that software.

Whenever a candidate after attempting a question presses NEXT button then the next Qs should be displayed.

How can we display the next Qs?

What will be the technique?

Thx

[351 byte] By [Java_persona] at [2007-11-26 13:16:33]
# 1

If I were doing the project I would make my population in a loop with a programmed exit (when all questions answered--when no more results from a DB usually) and just read from a database query's resultset for questions and answers or load the whole works into an array, linked list, or other type of local storage so you can release the connection to the DB.

essentially when you press the next button, you're just going to progress through the loop doing what you have already programmed it to do.

morgalra at 2007-7-7 17:38:39 > top of Java-index,Desktop,Developing for the Desktop...
# 2
Thx for the reply....I think u couldnt got my point...I am saying that "How can we show the Next Qs with new Option on the Screen when the candidate press next button" ?Any idea about this concept?Whats the proper solution........Thx
Java_persona at 2007-7-7 17:38:39 > top of Java-index,Desktop,Developing for the Desktop...
# 3

> Thx for the reply....

> I think u couldnt got my point...

> I am saying that

> "How can we show the Next Qs with new Option on

> the Screen when the candidate press next button" ?

>

I don't think you understand programming very much: so let me be more direct--make a reader that will read all of the questions from your database, and the appropriate answers if you have any, and then make a generic reader in a loop that gets the questions from the object that your stored them into when you read them from the database--you can store them in several objects like a linked list, vector, array, and many more. Each time you press the "next button" then you just repaint your screen with the next set of questions--yes, this will require you have a "standard" number of questions that you display in your frame, panel, window or what ever object you are using for a display.

The driving event is the button click of the "next button" so you just need to keep track of what question you're on and then repaint the screen each time the button is pressed.

This is very basic stuff, like just after "hello world".

morgalra at 2007-7-7 17:38:39 > top of Java-index,Desktop,Developing for the Desktop...
# 4
Thanks...............I am learning day by day....
Java_persona at 2007-7-7 17:38:39 > top of Java-index,Desktop,Developing for the Desktop...