Results 1 to 10 of 10
- 11-09-2009, 09:55 AM #1
Member
- Join Date
- Nov 2009
- Posts
- 8
- Rep Power
- 0
how to generate 4 set of questions
I have a question bank(qb) .Form this qb i need to qenerate 4 sets of questions witout duplcates.In question bank questions again are arranged as 8 units and in 8 units i have 3 different formats i.e (simple questions,difficult questions,mediumquestions), before generating sets user will give input location of qb and level of quest(simple,diff,mediu).
Last edited by ravi.virgoo@gmail.com; 11-09-2009 at 10:09 AM.
- 11-09-2009, 11:30 AM #2
How is that related to Swing? Do you have a question?
Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
- 11-09-2009, 12:01 PM #3
Member
- Join Date
- Nov 2009
- Posts
- 8
- Rep Power
- 0
This was application already developed using swings.
But it was generating 4 sets of questions with some duplicates.
- 11-09-2009, 12:03 PM #4
Member
- Join Date
- Nov 2009
- Posts
- 8
- Rep Power
- 0
Now i need to generate 4 sets of quest with out duplicates
- 11-09-2009, 12:11 PM #5
And do you have a question? What doesn't work? Complier errors? Runtime Exceptions? Stack trace?
Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
- 11-09-2009, 12:20 PM #6
Member
- Join Date
- Nov 2009
- Posts
- 8
- Rep Power
- 0
That application was working perfectly but in some sets same questions are repeating.
so, i want to generate 4sets of questions with out any repetitions .
- 11-09-2009, 12:27 PM #7
As you refuse to answer my questions, I can only give you a vague hint.
Implement a Set. You cannot have duplicates in a java.util.SetMath problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
- 11-09-2009, 12:40 PM #8
Member
- Join Date
- Nov 2009
- Posts
- 8
- Rep Power
- 0
sir, in my applic they already used java.util.List.
I am not clear with old application so i planned to write a new class for generating 4sets,
- 11-09-2009, 12:42 PM #9
Ok, that's fine. Do it.
Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
The Ubiquitous Newbie Tips
- 11-10-2009, 06:45 PM #10
Senior Member
- Join Date
- Aug 2009
- Location
- Pittsburgh, PA
- Posts
- 284
- Rep Power
- 4
Somehow your code will have to
keep track of what questions have been selected so far.
You then have two possible approaches:
- Select the next question from those that have not been selected.
- Select a random question and reject it if it has already been selected.
Your choice will depend on how many questions there are altogether.
If there are under a thousand questions, any approach will do.
If there are many questions, approach a may be impractical.
Similar Threads
-
Generate a Class file
By Daniel in forum New To JavaReplies: 6Last Post: 04-20-2009, 05:37 AM -
How to generate report
By Shivraj in forum NetBeansReplies: 0Last Post: 03-24-2009, 12:17 PM -
How to generate primary key in EJB
By naresh_m in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 07-17-2008, 09:41 AM -
how to generate dynamic pdf
By valery in forum Advanced JavaReplies: 1Last Post: 08-06-2007, 10:01 PM -
how to generate xml with Dom4j
By leonard in forum XMLReplies: 1Last Post: 08-06-2007, 04:39 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks