BCA 6th Semester

Advance JAVA Programming 2024 Board Question Paper

Tribhuvan university logo

Tribhuvan university

Bachelor In Computer Application

Course Title: Advance JAVA Programming

Code No:CACS 354

Semester:VI

2024

Full Marks:60 Pass Marks:24 Time:3 hours

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

Group B
Attempt any SIX question.
[6x5=30]
11.

What is the use of WindowEvent? List different methods of WindowListener interface with its uses.

12.

How can you display images in GUI using Java? Explain.

13.

Why do we need to create JavaBeans? Explain the steps involved in the creation of a JavaBean.

14.

What is the use of PreparedStatement? Differentiate between Statement and PreparedStatement.

15.

What are declaration and expression tags in JSP? Explain with examples.

16.

What is RMI? Write a RMI client and server program to find the greater number among two numbers.

17.

Write short notes on (Any two):
a) JMenuBar
b) Session handling in Servlet
c) Marshalling and Unmarshalling of arguments in RMI

Group C

Attempt any TWO questions

[2x10=20]
18.

Why do we need to use layout managers in GUI programming? Write a program to create a GUI form that takes data about a customer including cid, name, address, email and age and insert these data into the Customer table of the Shop database.

19.

Explain the lifecycle of a Java Servlet. Write a servlet program that takes three numbers from an HTML page and computes the sum of natural numbers up to the greatest number among the three numbers.

20.

What is directive element in JSP? Explain in detail. Create a JSP page that verifies the username and password entered form an HTML file and if the username and password are correct it displays a greetings message. Otherwise, it redirects to the register page.