Pre-Board examination question paper set for Advanced Java Programming from the year 2082.

Tribhuvan University
Faculty of Humanities & Social Sciences
OFFICE OF THE DEAN
2026
Bachelor in Computer Applications

Paper detail Value
Course Advanced Java Programming
Code No. CACS354
Semester VIth
Full marks 60
Pass marks 24
Time 3 hours

Candidates are required to answer the questions in their own words as far as possible.

Group B

2. What is Servlet? What are the major tasks performed by Servlets?

3. What is cookie? How can you store and read cookies by using Servlet? Explain with example.

4. What is session? What are different ways of tracking sessions? Write down suitable Servlet for tracking session.

5. What is event handling? What are the different event handling mechanism?

6. Compare result set with row set. Explain prepared statement with example.

7. Explain JLabel, JTextField and JPasswordField components of Java Swing Library.

8. Write short notes on (Any Two): a. Bean properties b. JDBC Components c. UI Controls.

Group C

9. Write a GUI application to find sum of two integer numbers. Use two text fields for input and third text field for output. When a user press a button the result should be shown on the third text field.

10. Define RMI. What are the six steps to write the RMI applications.

11. Write a program to connect to a database and fetch all the data and display the result. Let the database name is test1, table name is students. And the fields are id, subject and status.