I am doing a project in jsp of creating question paper from question bank.
Here we have to generate a paper based on the language like c,c++.
we want to know how to generate the paper by considering two question from each area like inheritence,exception handling.the question has to be randomly gnererated from question bank database which has area_id and language_id and questions. Kindly give us a logic how to select questions accordingly.
we tried the following logic but it does not work.WE are working in net beans(derby server).
ResultSet rs = st.executeQuery("select tech,t.tid,a.tid,aid from technology t,area a where t.tid=a.tid ");
tid = rs.getString(2);
<p><%=aid%></p>
<%
ResultSet rp=st.executeQuery("select * from qp order by random() ");
while(rp.getString(3).equals(rs.getString(4))){
}
Here we first selected the desired language(technology) and in each technlogy we have different areas.We selected the areas and put them in an array and from each array element we tried to select questions under each element to apply random number generation function to select question but it does not work.
Related Tutorials/Questions & Answers:
question paper - JSP-Servletquestion paper I am doing a project in jsp of creating
question paper from
question bank.
Here we have to generate a
paper based on the language like c,c++.
we want to know how to generate the
paper by considering two
Advertisements
ModuleNotFoundError: No module named 'paper'ModuleNotFoundError: No module named '
paper' Hi,
My Python program is throwing following error:
ModuleNotFoundError: No module named '
paper'
How to remove the ModuleNotFoundError: No module named '
paper'
ModuleNotFoundError: No module named 'paper-cup'ModuleNotFoundError: No module named '
paper-cup' Hi,
My Python... '
paper-cup'
How to remove the ModuleNotFoundError: No module named '
paper... have to install padas library.
You can install
paper-cup python with following
question question sir plz tell me what should i give in title box. just i want java program for the
question typed in this area
question question sir plz tell me what should i give in title box. just i want java program for the
question typed in this area
Question Question When there is an exception in my program how java runtime system handles
questionquestion dear sir/madam
my
question is how to compare two text format in java..we are java beginners..so we need the complete source code for above mentioned
question...we have to compare each and every word
questionquestion Dear sir
i had some typing mistake at previous
question
so its my humble request to let me know the steps to start the tomcat6 under the tomcat directory
How to design a burn paper
How to design a burn
paper
This tutorial teaches you to draw a burn
paper, I
am going to make this effect on a simple
paper.
Let's start.ADS_TO_REPLACE_1
questionquestion Gud morning sir,
I have asked u some
question regarding jsp in saturaday for that i didnot find any answere in which u send me the some of the links.U have asked me the specify some details.
There is a entity name
Question?Question? My
question is how to:
Add a menu bar to the program with a File menu.
In the File menu, add a submenu (JMenuItem) called About.
When the user clicks on the About menu item, display a JOptionPane message dialog
Designing Printing Motion of a Paper Designing Printing Motion of a
Paper.
It is very interesting... printer work effect. I have
taken a printer
and a blank
paper. A blank
paper... to take a
printer image to modify.
ADS_TO_REPLACE_1
Paper: Select
Question In the Network ?Question In the Network ? Description Task:
Joeâ??s Brokerage House currently has 25 standalone computers and five laser printers
distributed... for the company.
On blank piece of
paper, sketch the network design you think
Question on poolingQuestion on pooling which server supports pooling?Application server or web server
This question in JmeterThis
question in Jmeter hi..i want to send request(xml) 100 times but each time in request xml one element needs to change, otherwise request will be failed since its duplicate
Question on javascriptQuestion on javascript This is not exactly what i wanted....If i enter in 2nd combobox as name of child then it should show child id in 1st combobox automatically and vice versa
C# questionCreate a Solution by name Bank with Classes Account.cs, SavingsAccount.cs and savingsTest.cs to Demonstrate Abstract Classes in C# 1st
question :
Create a Solution by name Bank with Classes Account.cs, SavingsAccount.cs
question for c++question for c++ write Program to swap between two numbers if first number is greater than second number and total of two numbers greater than 10
Inheritance question?Inheritance
question? Q3)Create a class hierarchy as Company extended by AccountsDepartment. AccountsDepartment extended by AccountsReceivable... as AccountsPayable.
please send the code of this
question soon....plzzzzzzzz
View
Inheritance question?Inheritance
question? Q3)Create a class hierarchy as Company extended by AccountsDepartment.
AccountsDepartment extended by AccountsReceivable... as AccountsPayable.
please send the code of this
question soon....plzzzzzzzz
Question in Eclipse Question in Eclipse ** Hello EveryOne , L Have
Question in Eclipse ?!!
Question is :
A.( The square class) Design a class named Square that contains :
1.A private instance variable side of type double
2.A no-argument
Question in Eclipse ??Question in Eclipse ?? ** Hello EveryOne , L Have
Question in Eclipse ?!!
Question is :
A.( The square class) Design a class named Square that contains :
1.A private instance variable side of type double
2.A no-argument
jsp question..jsp
question.. what should do in deployment descriptor after adding jstl jar files..
I am the the following message in console screen;
The absolute cannot be resolved in either web.xml or the jar files deployed
Question in Java ?? Question in Java ?? Welcome every One ,I have
Q in Java :
Write aprogram that print the falewing table using SQRT method in the Math Class?
Number squrfoot
Question in Java ??Question in Java ?? Welcome every One ,I have
Q in Java :
Write aprogram that print the falewing table using SQRT method in the Math Class?
Number
0 ,2,
.
.
.
,18,20
squrfoot
00000
1.4142
5.2426
5.4721
jsp question jsp
question sir plz tell me how can I create a page which is similar to feedback form in which if one option is empty then other option is inaccessible.
for example it consists of name address etc.
if name field is not filled
jsp question..jsp
question.. what should do in deployment descriptor after adding jstl jar files..
I am the the following message in console screen;
The absolute cannot be resolved in either web.xml or the jar files deployed
Question in Java ??Question in Java ?? Welcome every One ,I have
Q in Java :
Write aprogram that print the falewing table using SQRT method in the Math Class?
Number
0 ,2,
.
.
.
,18,20
squrfoot
00000
1.4142
5.2426
5.4721
jsp question jsp
question sir plz tell me how can I create a page which is similar to feedback form in which if one option is empty then other option is inaccessible.
for example it consists of name address etc.
if name field is not filled