BCA 3rd Semester

OOP In Java 2020 Board Question Paper

Tribhuvan university logo

Tribhuvan university

Bachelor In Computer Application

Course Title: OOP In JAVA

Code No:

Semester:III

2020

Full Marks:60 Pass Marks:24 Time:3 hours

Candidates are required to answer the question in their own words as far as possible.

Group B
Attempt any SIX question.
[6x5=30]
11.

Define OOP. Write the characteristics of OOP language.

12.

Explain the operators available in Java programming.

13.

Define loop. Write a java program to print first n prime numbers

14.

Differentiate between abstract class and interface with suitable example.

15.

Define access modifier. Explain access modifiers in java with example.

16.

Define exception. Explain exception handling mechanism in java with example.

17.

Write short note on (Any Two);
a) Final keyword b) Collection class c) JDBC

Group C

Attempt any TWO questions

[2x10=20]
18.

a) Write a program to create and use java package.
b) Define thread. Explain the life cycle of thread.

19.

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?

20.

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.