Official 2020 board examination paper 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.
Group B
2. Define OOP. Write the characteristics of OOP language.
3. Explain the operators available in Java programming.
4. Define loop. Write a java program to print first n prime numbers.
5. Differentiate between abstract class and interface with suitable example.
6. Define access modifier. Explain access modifiers in java with example.
7. Define exception. Explain exception handling mechanism in java with example.
8. Write short note on (Any Two); a) Final keyword b) Collection class c) JDBC
Group C
9. a) Write a program to create and use java package. b) Define thread. Explain the life cycle of thread.
10. a) Write a program to sort name of any five cities in ascending order. b) Define polymorphism. How do we achieve polymorphism in java explain with examples?
11. a) Differentiate between java AWT and java Swing. Explain the different types of layout managers in java GUI programming. b) Write a java GUI program to calculate square of entered number.