question paper

question 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 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 ");
while(rs.next())
{
if(option.equals(rs.getString(1)))
{
tid = rs.getString(2);



if(tid.equals(rs.getString(3)))
{
aid = rs.getString(4);
%>
<p><%=aid%></p>

<%



ResultSet rp=st.executeQuery("select * from qp order by random() ");
while(rp.next()){
while(rp.getString(3).equals(rs.getString(4))){
%> <p><%=rp.getString(4)%></p><%
}
}
}


}}
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.
View Answers









Related Tutorials/Questions & Answers:
question paper - JSP-Servlet
question 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
How to design a burning paper, a burning paper, paper
How to design a burning paper       You will learn here how to give a fire effect to the poster trough this example. Open any Picture: Capture a picture of the poster.ADS
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'
How to design a turn corner of the paper
How to design a turn corner of the paper
Print in a long paper - Java Beginners
Print in a long paper  how to print text in long paper?? each print text, printer stops. not continue until the paper print out. Thanks
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
ModuleNotFoundError: No module named 'paper-manager'
ModuleNotFoundError: No module named 'paper-manager'  Hi, My... 'paper-manager' How to remove the ModuleNotFoundError: No module named 'paper-manager' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'paper-admin'
ModuleNotFoundError: No module named 'paper-admin'  Hi, My Python... 'paper-admin' How to remove the ModuleNotFoundError: No module named 'paper-admin' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'paper-uploads'
ModuleNotFoundError: No module named 'paper-uploads'  Hi, My... 'paper-uploads' How to remove the ModuleNotFoundError: No module named 'paper-uploads' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'bear-to-paper'
ModuleNotFoundError: No module named 'bear-to-paper'  Hi, My... 'bear-to-paper' How to remove the ModuleNotFoundError: No module named 'bear-to-paper' error? Thanks   Hi, In your python
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
question
question  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
question
question  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
question
question  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
ModuleNotFoundError: No module named 'rock-paper-scissors'
ModuleNotFoundError: No module named 'rock-paper-scissors'  Hi, My... named 'rock-paper-scissors' How to remove the ModuleNotFoundError: No module named 'rock-paper-scissors' error? Thanks   Hi
ModuleNotFoundError: No module named 'gym-rock-paper-scissors'
ModuleNotFoundError: No module named 'gym-rock-paper-scissors'  Hi...: No module named 'gym-rock-paper-scissors' How to remove the ModuleNotFoundError: No module named 'gym-rock-paper-scissors' error? Thanks   
How to convert new paper into a man shape, convert new paper into a man shape, new paper into a man shape
How to convert new paper into a man shape       Learn a technique to convert news paper to the man shape in this example. Take a new picture: Take a news paper picture
Maven Repository/Dependency: org.webjars.bowergithub.polymerelements | paper-input
Maven Repository/Dependency of Group ID org.webjars.bowergithub.polymerelements and Artifact ID paper-input. Latest version of org.webjars.bowergithub.polymerelements:paper-input dependencies. # Version
Maven Repository/Dependency: org.webjars.bowergithub.polymerelements | paper-item
Maven Repository/Dependency of Group ID org.webjars.bowergithub.polymerelements and Artifact ID paper-item. Latest version of org.webjars.bowergithub.polymerelements:paper-item dependencies. # Version Release
Maven Repository/Dependency: org.webjars.bowergithub.polymerelements | paper-styles
Maven Repository/Dependency of Group ID org.webjars.bowergithub.polymerelements and Artifact ID paper-styles. Latest version of org.webjars.bowergithub.polymerelements:paper-styles dependencies. # Version
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
Maven Repository/Dependency: org.webjars.bowergithub.polymerelements | paper-icon-button
Maven Repository/Dependency of Group ID org.webjars.bowergithub.polymerelements and Artifact ID paper-icon-button. Latest version of org.webjars.bowergithub.polymerelements:paper-icon-button dependencies. # Version
ModuleNotFoundError: No module named 'Rock-Paper-Scissors-Lizard-Spock'
ModuleNotFoundError: No module named 'Rock-Paper-Scissors-Lizard-Spock' ...: ModuleNotFoundError: No module named 'Rock-Paper-Scissors-Lizard-Spock' How to remove the ModuleNotFoundError: No module named 'Rock-Paper-Scissors-Lizard-Spock'
org.webjars.bowergithub.polymerelements - paper-item version 2.1.0 Maven dependency. How to use paper-item version 2.1.0 in pom.xml?
org.webjars.bowergithub.polymerelements  - Version 2.1.0 of paper-item...; - Version 2.1.0 of paper-item in pom.xml? How to use paper-item version 2.1.0... to use org.webjars.bowergithub.polymerelements  - Version 2.1.0 of paper-item
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
Maven Repository/Dependency: org.webjars.bower | github-com-PolymerElements-paper-styles
Maven Repository/Dependency of Group ID org.webjars.bower and Artifact ID github-com-PolymerElements-paper-styles. Latest version of org.webjars.bower:github-com-PolymerElements-paper-styles dependencies. # Version
Maven dependency for org.webjars.bowergithub.polymerelements - paper-input version 3.2.0 is released. Learn to use paper-input version 3.2.0 in Maven based Java projects
; - Version 3.2.0 of paper-input released The developers of   org.webjars.bowergithub.polymerelements - paper-input project have released the latest...; org.webjars.bowergithub.polymerelements - paper-input library is 3.2.0. Developer can use
Maven dependency for org.webjars.bowergithub.polymerelements - paper-input version 3.0.1 is released. Learn to use paper-input version 3.0.1 in Maven based Java projects
; - Version 3.0.1 of paper-input released The developers of   org.webjars.bowergithub.polymerelements - paper-input project have released the latest...; org.webjars.bowergithub.polymerelements - paper-input library is 3.0.1. Developer can use
Maven dependency for org.webjars.bowergithub.polymerelements - paper-input version 2.0.2 is released. Learn to use paper-input version 2.0.2 in Maven based Java projects
; - Version 2.0.2 of paper-input released The developers of   org.webjars.bowergithub.polymerelements - paper-input project have released the latest...; org.webjars.bowergithub.polymerelements - paper-input library is 2.0.2. Developer can use
Question on pooling
Question on pooling  which server supports pooling?Application server or web server
org.webjars.bower - github-com-PolymerElements-paper-styles version 1.3.1 Maven dependency. How to use github-com-PolymerElements-paper-styles version 1.3.1 in pom.xml?
org.webjars.bower  - Version 1.3.1 of github-com-PolymerElements-paper... of github-com-PolymerElements-paper-styles in pom.xml? How to use github-com-PolymerElements-paper-styles version 1.3.1 in pom.xml? Learn to use
This question in Jmeter
This 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 javascript
Question 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# question
Create 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

Ads