Chapter Study

BCA Semester 6 Advanced Java Programming () Questions & Answers | Past TU Exam Papers

Practice from Advanced Java Programming with detailed solutions and model answers from past Tribhuvan University exams.

14
Questions
85
Marks
Back to All Chapters

Why do we need a top-level container like JFrame to write Java programs with GUI? How can we display two-dimensional objects in Java?

MediumTHEORY5 marks2021(TU FOHSS Final)

Explain JTextField and JTextArea components of the Java Swing library.

MediumTHEORY5 marks2021(TU FOHSS Final)

Write a GUI application to find the sum and difference of two integer numbers. Use two text fields for input and a third text field for output. Your program should display the sum if the user presses the mouse and the difference if the user releases the mouse.

HardTHEORY10 marks2021(TU FOHSS Final)

Why do we use Panels while creating GUI applications in Java? Explain the components of the event handling model in Java.

MediumTHEORY5 marks2022(TU FOHSS Final)

What are adapter classes? What is the benefit of using adapter classes in Java while creating events in GUI programs? Explain with an example.

MediumTHEORY5 marks2022(TU FOHSS Final)

Write short notes on (Any Two):

a) 2D shapes in swing

b) MouseEvent and MouseListener

c) Session tracking

MediumTHEORY5 marks2022(TU FOHSS Final)

Why do we need to use Layout managers while creating GUI application in Java? Explain the key interfaces required to develop any database application using Java. Also, write a program to display the records from the table Students who have got distinction and have a major subject Data science. Assume that the Student table is in the database College and contains the columns Rollno, Name, Level, Division and Major.

HardTHEORY10 marks2022(TU FOHSS Final)

What is the role of Event Listener in event handling? List different event listeners provided by Java.

MediumTHEORY5 marks2023(TU FOHSS Final)

What is KeyEvent? Explain with a proper example.

MediumTHEORY5 marks2023(TU FOHSS Final)

Write short notes on (any two):

a) Adapter classes

b) CORBA

c) Life cycle of a servlet

MediumTHEORY5 marks2023(TU FOHSS Final)

How a frame can be created in Java? Explain. Write a program to create a GUI application in Java that identifies the smaller and greater number between two input numbers taken through two text fields and displays the result in a label. If the user presses the mouse it should display the smaller number and if the user releases the mouse it should display the greater number.

HardTHEORY10 marks2023(TU FOHSS Final)

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

MediumTHEORY5 marks2024(TU FOHSS Final)

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

MediumTHEORY5 marks2024(TU FOHSS Final)

Write short notes on (Any two):

a) JMenuBar

b) Session handling in Servlet

c) Marshalling and Unmarshalling of arguments in RMI

MediumTHEORY5 marks2024(TU FOHSS Final)
Showing 14 questions

Unit 1: GUI Programming (12Hrs) chapter questions with answers for Advanced Java Programming (BCA Semester 6). Prepare for TU exams with our comprehensive question bank and model answers.