APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : B.Tech

Semester : SEMESTER 4

Year : 2019

Term : DECEMBER

Scheme : 2015 Full Time

Course Code : CS 206

Page:3





PDF Text (Beta):

15 a)

b)

16

17 a)

b)

0)

18 a)

b)

19 a)

b)

20

D192057 Pages:3

‘DataOutputStream’.
PART E
Answer any four full questions, each carries 10 marks.

Define Applet. Draw the life cycle of Applet in Java showing the different methods
invoked.
Write a Java Applet based program which shows a label and a textbox on the html
page. The label and the textbox should display some values which is provided to it
from the html code representing the page.
Write Java AWT/Swing based program to display a GUI to accept username and
password from user. The GUI should contain the required UI elements and should
have appropriate event handling aspects.
Define Events in Java. Illustrate the events and the corresponding event listeners for
the UI elements such as TextField, Button and Window.
State the advantages of using Adapter Classes ( WindowAdapter, MouseAdapter ...
) instead of the listener interfaces ( WindowListener, MouseListener ... ) for event
handling in Java.
Write a simple GUI Java program which displays only a Window or a Frame.
Provide the implementation of the event handling mechanism such that the Window
or Frame is closed when the ‘Close (X)’ symbol on its top is clicked.
With a diagram explain the overall architecture of the JDBC aspect in Java.
Illustrate the role of JDBC driver in the database handling process. What are the
different types of JDBC driver available?
What are the basic procedures that have to be followed to communicate with a
database in Java using 27
With an example, state the basic differences between the execution of the methods
‘executeQuery’ and ‘executeUpdate’.
Write a Java program to store the marks of students corresponding to three subjects
in database. The program should provide provision for the following.

i. Create a table in database corresponding to a particular class.

1. Find student who topped the class.

iii. | Find the average class marks for a given subject.

Page 3 of 3

(5)

(5)

(10)

(4)

(2)

(4)

(5)

(5)

(5)

(5)

(10)

Similar Question Papers