2025 Pre-Board examination question paper set for Object Oriented Programming in Java.
Tribhuvan University
Faculty of Humanities & Social Sciences
OFFICE OF THE DEAN
2025
Bachelor in Computer Applications
| Paper detail | Value |
|---|---|
| Course | Object Oriented Programming in Java |
| Code No. | CACS204 |
| Semester | IIIrd |
| Full marks | 60 |
| Pass marks | 24 |
| Time | 3 hours |
Candidates are required to answer the questions in their own words as far as possible.
2. Explain the working of JVM in detail? Explain any 3 string methods
3. Explain different operator in Java. Write a program to find the factorial of a program using constructor. WAP to find the random number.
4. What is Exception handling? Write a program using "NullPointerException" and "IOException" with example.
5. Discuss the various levels of access protection available for packages and their implications.
6. Write short Notes on: a. Life cycle of Thread b. "this" keyword
7. How user defined Packages are created? Write a program that create a package to add two integer number?
8. What is Layout management? Write a program to display four Buttons "Add, Subtract, Multiply, Divide" using "grid layout".
9. a. Write a Program to show how a Thread is created by implementing Runnable Interface. b. Write a program to create the Form using Java Code, which have two label(First num, Second Number), three Text Fields(First Number, Second Number), three Button (Divide and Multiply Cancel).
10. a. What is Applet? Write a program to display circle and rectangle using Applet. b. For the following Form, save the data in the database when "Register" Button is clicked. (DataBase:"BCA", Table:"Student (sname, saddress, sphone)")
11. a. Write a program to sort an Array in Java using Bubble Sort method. WAP to create a file and write "hello world" in bca.txt in java b. What is the difference between Method Overloading and Method Overriding, explain with examples