AJAVA Question Bank

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

WINTER-2020

Sr. No. Question Marks CO


1 List attributes of <APPLET> tag. 2 CO1
2 List out AWT controls in Java. 2 CO2
3 What is difference between Servlet and Applet? 2 CO4
4 Which packages are required to create an Applet? 2 CO1
5 Give full form of HTTP and AWT. 2 CO2
6 List Graphics class methods available in Applet. 2 CO1
7 List JDBC API components. 2 CO3
8 State why an adapter class is useful? 2 CO2
9 List any four JDBC Exceptions. 2 CO3
10 State any two difference between GET Request and POST Request. 2 CO4
11 Give difference between Applet and Application. 3 CO1
List the names of layout managers in Java and explain any one layout manager with an
12 3 CO2
example.
13 Explain Event Handling Delegation Model in Java. 3 CO2
14 Explain AWT Class Hierarchy. 3 CO2
Write an Applet to display Your name and Your city using passing the parameters to
15 4 CO1
the Applet.
Write an Applet to draw a filled circle with red color using fillOval() method of
16 4 CO1
Graphics class.
17 Describe Mouse Listener and Mouse Events using proper example. 4 CO2
18 Explain Canvas class with example. 4 CO2
19 Give advantages and limitations of JDBC. 3 CO3
20 List allJDBC drivers and explain any one in detail. 3 CO3
21 Write a step to access database from Java Application using JDBC. 3 CO3
22 Explain any one Swing component with example. 3 CO2
23 Write a short note on JDBC Architecture. 4 CO3
24 Explain Servlet Life Cycle. 4 CO4
25 Write steps to create a Servlet in Java. 4 CO4
26 Explain Session Tracking in Servlet. 4 CO4
27 Describe HttpServlet class with its methods and syntax. 3 CO4
28 Explain JSP declaration tag with example. 3 CO5
29 Difference between JSP and Servlet. 4 CO5
30 Write a Servlet program that takes parameter using POST method. 4 CO4
31 Explain JSP Life Cycle methods with program. 7 CO5
32 Write a Servlet code to print "Hello". 4 CO4
33 List the installation steps of JSDK. 4 CO4
34 Explain web.xml file with its attributes. 3 CO4
35 Write JSP script to determine how many times the visitors have loaded the page. 3 CO5
SUMMER-2020
Sr. No. Question Marks CO
1 List out any 4 methods of Applet class. 2 CO1
2 Explain local applet and remote applet. 3 CO1
3 Explain parameter passing in Applet. 3 CO1
4 Explain any three methods of Graphics class. 3 CO1
5 Explain how to set the background color within the applet area. 3 CO1
6 List of layout managers in java 2 CO2
7 Define Frame and state two ways to create a frame. 2 CO2
8 State two difference between SWING and AWT. 2 CO2
9 Compare Label and JLabel controls. 2 CO2
10 Explain Mouse Listener. 3 CO2
11 Explain Canvas class with example. 3 CO2
12 Explain JComboBox AWT control in java. 3 CO2
13 Explain JButton AWT control in java. 3 CO2
Write an applet that contains a check box group with three check boxes
14 labeled “Red”, “Green” and “Blue”. There is also a 30 x 30-pixel canvas. The 3 CO2
selections of the check boxes determine the color of the canvas.
15 Explain event delegation model. 4 CO2
16 Differentiate checkbox and radio button. 4 CO2
17 Write a program to draw rectangle in the applet. 4 CO2
Write an applet that receives one string and display in reverse fashion (e.g.
18 4 CO2
“india” should be display “aidni”).
19 Difference between component and container class in java. 4 CO2
20 Write Steps to connect to the database in java 2 CO3
21 Which package is used for JDBC application 2 CO3
22 Explain general architecture of JDBC 3 CO3
23 List out types of JDBC drivers. Explain any one type of driver in detail. 3 CO3
Write a JAVA program to delete a record in database. (Assume suitable
24 4 CO3
database)
Write a JAVA program to insert a record in database. (Assume suitable
25 4 CO3
database)
26 Write a brief note on Three-Tier Database Design. 4 CO3
27 Give difference between servlet & applet. 2 CO4
28 List various features of Servlet. 4 CO4
29 Explain Servlet life cycle. 4 CO4
30 Write Servlet to read parameters using POST method. 4 CO4
31 List out types of JSP scripting elements. 2 CO5
32 List out methods of Servlet life cycle. 2 CO5
33 Develop JSP code to retrieve data from MySQL database. 3 CO5
34 Explain how servlet application works. 4 CO5
Develop a JSP program to display the grade of a student by accepting the
35 7 CO5
marks of five subjects.
WINTER-2019
Sr. No. Question Marks CO
1 Differentiate between Local & Remote Applet. 2 CO1
2 List attributes of <APPLET> tag. 2 CO1
3 Explain life cycle of APPLET with diagram. 3 CO1
4 Explain < PARAM > tag in applet using example. 3 CO1
Write an Applet to display Your name and Your City name using passing the
5 3 CO1
parameters to the Applet.
6 Write Advantages and Limitations of an Applet. 3 CO1
Write an applet to draw a filled circle with red color using fillOval() method of
7 4 CO1
Graphics class.
Write an Applet that reads three numeric values from the keyboard and display even
8 4 CO1
numbers on the screen amongst the three entered values.
9 Define Frame and state two ways to create a frame. 2 CO2
10 List out AWT controls in JAVA. 2 CO2
11 State two difference between Swing classes and AWT classes. 2 CO2
12 List any four methods provided by Component in Java. 2 CO2
List the names of layout managers in Java and explain any one layout manager with an
13 3 CO2
example.
14 Explain event handling delegation model in JAVA. 3 CO2
15 Explain AWT class hierarchy. 3 CO2
16 Compare AWT Button Control and JButton control with an example. 3 CO2
17 Explain Label and TextField AWT control with an example. 4 CO2
18 Explain ActionEvent class with ActionListener Interface by giving an example. 4 CO2
Write a program in JAVA that contains two Push Button controls and 30 x 30 pixel
Canvas. The two Push Button controls are labeled as “Red” and “Yellow” respectively.
19 4 CO2
Write a code to change the background color of Canvas as per the selection of the
Push Button by the user.
20 Describe CRUD operations in brief. 2 CO3
21 List out JDBC API Components. 2 CO3
Write a JAVA program to insert a record in database (Table name : USER column
22 3 CO3
names: username, password and Database Name: STUDENT )
23 Explain two-tier and three-tier JDBC architecture. 4 CO3
24 Explain JDBC API components in brief. 4 CO3
25 Write and Explain steps to connect MySql Database in JAVA. 4 CO3
26 Explain all types of JDBC Drivers with diagrams. 7 CO3
27 What is difference between SERVLET and APPLET? 2 CO4
Write an HTML code to create login form having one submit button, two textboxes
labeled as Login name and Password as respectively. Write a Servlet class named as
28 3 CO4
ReadParameter to read these two parameters and display entered parameters values
on the page using doGet() method when user clicked on submit button.

Write an HTML code to create login form having one submit button , two textboxes
labeled as Login and Password as respectively. Write a Servlet class named as
29 3 CO4
ReadParameter to read these two parameters and display entered parameters values
on the page using doPost() method when user clicked on submit button.
30 Write steps to create a Servlet in JAVA. 4 CO4
Explain the difference between doGet() and doPost() method of Servlet with an
31 4 CO4
example.
32 Explain the life cycle of a Servlet. 4 CO4
33 Give difference between SERVLET & JSP. 2 CO5
List Scripting Elements of JSP and explain expressions scripting element with an
34 3 CO5
example.
Write an HTML code to create form having two textboxes and one submit button.
35 Write JSP code to display the addition of these two numbers when user clicks on the 4 CO5
submit button.
SUMMER-2019
Sr. No. Question Marks CO
1 Differentiate between Local & Remote Applet 2 CO1
2 Explain paint , repaint and update method in applet 2 CO1
3 Give difference between applet and application. 3 CO1
4 Describe process to design a webpage with <APPLET>tag. 3 CO1
5 Explain < PARAM >tag in applet using example. 3 CO1
6 Explain life cycle of applet with diagram. 4 CO1
7 Write a program in JAVA to draw ten circles in the applet. 4 CO1
8 What is Swing? Explain the need of Swing. 2 CO2
9 Explain the AWT classes hierarchy 2 CO2
10 List out Swing component classes 2 CO2
11 What is Event? Give the name of Event classes. 2 CO2
12 Explain event handling in Java. 3 CO2
13 Write a Java program to use JTextField Swing Control to display your name. 3 CO2
14 Explain Mouse Listener. 3 CO2
15 Explain ComboBox AWT control in java. 3 CO2
16 Write short note in Event Listener 3 CO2
17 Explain different layout managers in Java. 4 CO2
Develop a program that has one button in the frame, clicking on the button cycles
18 4 CO2
through the colors of background: red->green>blue and so on.
19 Describe MOUSE EVENT and MOUSE LISTENER interface with example. 4 CO2
20 List advantages of using JDBC API. 2 CO3
21 Write a short note on JDBC Architecture. 3 CO3
22 What is JDBC Connection? Explain steps to get Database connection. 4 CO3
23 List JDBC Drivers. Explain JDBC-ODBC Driver and its advantages 4 CO3
Write a JDBC program that access Student table from database and display its all
24 4 CO3
record. Columns are Student_Id, Student_Name and age.
Develop a Graphical User Interface that performs the following SQL operations: a)
25 7 CO3
Insert b) Delete c)Update
26 Give difference between Servlet & Applet. 2 CO4
27 Explain the Use of sessions 2 CO4
28 What is difference between doGET() and doPOST() methods? 3 CO4
29 Describe HTTP SERVLET class with its methods with syntax. 3 CO4
30 Explain Servlet life cycle. 3 CO4
31 Explain session tracking in Servlet 4 CO4
32 Explain JSP Expressions 2 CO5
33 Write Short note on JSP scripting elements. 4 CO5
34 Difference between JSP and Servlet. 4 CO5
Develop a simple JSP program for user registration and then control will be transfer it
35 4 CO5
into second page.
WINTER-2018
Sr. No. Question Marks CO
1 Which Packages are required to create an Applet? 2 CO1
2 List four methods of an Applet Life cycle. 2 CO1
3 List Attributes of <PARAM> tag 2 CO1
4 Explain Parameter Passing in Applet 3 CO1
5 Explain Local Applet & Remote Applet 3 CO1
6 Give Advantages and limitations of Applet 3 CO1
7 Write a program to print “GTU Exam” in center of Applet window with RED color. 4 CO1
8 Give full form of HTTP and AWT. 2 CO2
9 Compare Controls Button and JButton 2 CO2
10 Differentiate Between AWT and Swing 2 CO2
11 Differentiate Flow Layout and Grid Layout 3 CO2
12 Explain any one Swing component with example. 3 CO2
13 Explain Canvas class with example. 3 CO2
14 Write a program to create a frame with one label in Applet. 3 CO2
15 Explain Border layout in Applet with example. 4 CO2
16 Describe java AWT class hierarchy. 4 CO2
17 Explain Event Handling in Java Applet. 4 CO2
Write an Applet that receives three numeric values as input from user and Print
18 4 CO2
largest value.
19 Write a java Applet program to demonstrate Action Listener. 4 CO2
20 List out JDBC API. 2 CO3
21 List Any four JDBC Exceptions 2 CO3
22 Give Advantages and limitations of JDBC 3 CO3
23 List All JDBC Drivers and explain any one in Detail. 3 CO3
24 Explain steps to connect java program to MySql Database. 4 CO3
25 Explain steps to connect java program to MS-Access Database. 4 CO3
26 Write a short note on JDBC Architecture. 4 CO3
27 What is Web Container in Servlet? 2 CO4
28 Write steps to create a Servlet in JAVA. 3 CO4
29 Write a Servlet program that takes parameter using POST method. 3 CO4
30 How to call JSP from Servlet? Explain using example. 4 CO4
31 Explain Session tracking in Servlet. 4 CO4
32 Describe Servlet Life cycle and its useful methods. 4 CO4
33 Explain <scriplet> tag of JSP in brief. 2 CO5
34 Differentiate between JSP and Servlet. 3 CO5
35 Explain JSP life cycle methods with program. 7 CO5
SUMMER-2018
Sr. No. Question Marks CO
1 List Attributes of <Applet> tag. 2 CO1
2 Give difference between Local and Remote Applets. 2 CO1
3 Explain <PARAM> tag in Applet using Example. 3 CO1
4 Write a short note on Applet life cycle. 3 CO1
5 Give the difference between Applet and Application. 3 CO1
6 List Constructors and Method of CANVAS in AWT. 2 CO2
7 List Graphics class method available in Applet. 2 CO2
8 Give difference between AWT and Swing Packages. 2 CO2
Write a GUI based application using Jlabel, JTextField and JButton that accept your
9 3 CO2
name and display it.
10 Explain MouseEvent class in detail. 3 CO2
11 Differentiate CheckBox and RadioButton. 4 CO2
12 List out Various Layout Managers? Explain any one with Example. 4 CO2
Create an application that display a frame with a Menubar when a user selects any
13 4 CO2
Menu or Menu item, display that selection on a text area in the center of the Frame.
Write an applet that contains two RadioButton and 40×40 pixel CANVAS. The Two
14 RadioButton should be labeled with Red and Green. When a user selects any 4 CO2
RadioButton, change that selection of color in the Canvas.
15 Draw and explain AWT class hierarchy. 4 CO2
16 List JDBC API Components. 2 CO3
17 Write a step to access database from Java Application using JDBC. 3 CO3
18 List JDBC Driver. Explain JDBC-TO-ODBC bridge Driver (Type-1). 3 CO3
Develop JDBC application that uses any JDBC drivers to insert a record. (Assume
19 4 CO3
suitable Database).
Develop JDBC application that uses any JDBC drivers to update a record. (Assume
20 4 CO3
suitable Database).
21 Write a short note on JDBC Architecture. 4 CO3
22 What is difference between Servlet and Applet? 2 CO4
23 List Various tags used in WEB.XML file in Servlet. 2 CO4
24 What is Difference between doGet () and doPost () Methods? 3 CO4
25 List various features of Servlet. 3 CO4
26 Explain the life cycle of Servlet. 4 CO4
27 List installation steps of JSDK. 4 CO4
What is HTTP/Servlet Technology? Describe HTTPServlet class with its methods with
28 7 CO4
suitable Example.
29 Explain advantages of JSP? 2 CO5
30 List Types of Tags in JSP Scripting with Syntax. 2 CO5
31 Explain JSP Life cycle in detail. 3 CO5
32 Give difference between JSP and Servlet. 3 CO5
33 Write a simple JSP program to print “Hello World”. 3 CO5
34 Write JSP script to determine how many times the visitors has loaded the page. 4 CO5

35 Explain how to pass parameters in JSP file from an HTML file with an Example. 4 CO5

You might also like