Pre-Board examination question paper set for Advanced Java Programming from the year 2025.
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. How do you execute SQL statements using JDBC? Explain with example.
3. Compare result set with row set. Explain prepared statement with example.
4. What is servlet? Write a simple JSP file to display "Tribhuwan University" five times.
5. Explain life-cycle of servlet in detail. Create a simple servlet that reads and displays data from HTML form. Assume form with two fields username and password.
6. How do you set and get Cookie in Servlet? Explain using suitable Java program.
7. Explain different scripting elements of JSP with example.
8. Write short notes on (Any Two): a) Java web frameworks b) CORBA c) Bean bound property.
Group C
9. Define RMI. What is stub and parameter marshalling? Write a client/server application using RMI to find product of two numbers.
10. What is bean design pattern? Explain simple, Boolean, and indexed property design patterns with suitable examples in detail.
11. Write a GUI application to find sum and difference of two integer numbers. Use two text fields for input and third text field for output. Your program should display sum if the users presses the mouse and difference if the users releases the mouse.