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. Why do we need swing components? Explain the uses of check boxes and radio buttons in GUI programming.
3. Why do we need layout management? Describe about default layout manager with suitable example.
4. What is the use of action command in event handling? Explain with example.
5. When do we need an internal frame? How do you create a table using Swing?
6. Write a program to create a menu named "File" with menu items "New," "Save," and "Exit".
7. What is JDBC? Explain four different type of JDBC driver.
8. What are JDBC component? Explain with suitable architecture.
Group C
9. Write a GUI application to find largest and smallest number. Use three text fields for input and fourth text fields for output. Your program should display largest number if the user press the mouse and smallest if user releases the mouse.
10. You are hired by a reputed software company which is going to design an application for "Movie Rental System". Your responsibility is to design a schema named MRS and create a table named Movie(id, Title, Genre, Language, Length). Write a program to design a GUI form to take input for this table and insert the data into table after clicking the OK button.
11. How to display image in swing? Explain with suitable program. Using swing components, design a form with three buttons with captions "RED," "BLUE," and "GREEN," respectively. Then write a program to handle the event such that when the user clicks the button, the color of that button will be the same as its caption.