Tribhuvan University
Bachelor of Computer Application
Semester 3 · TU Board 2020
Course Title: Object Oriented Programming in Java (CACS204)
Full Marks: 60Pass Marks: 24Time: 3 hours
Candidates are required to answer the question in their own words as far as possible.
Group B
Attempt any SIX question.(6 × 5 = 30)
- 2.5
Define OOP. Write the characteristics of OOP language.
- 3.5
Explain the operators available in Java programming.
- 4.5
Define loop. Write a java program to print first n prime numbers.
- 5.5
Differentiate between abstract class and interface with suitable example.
- 6.5
Define access modifier. Explain access modifiers in java with example.
- 7.5
Define exception. Explain exception handling mechanism in java with example.
Answer comingAlso asked in 2021
- 8.5
Write short note on (Any Two); a) Final keyword b) Collection class c) JDBC
Group C
Attempt any TWO questions(2 × 10 = 20)
- 9.10
a) Write a program to create and use java package. b) Define thread. Explain the life cycle of thread.
- 10.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.10
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.
— The End —