Object Oriented Programming in Java 2020

Question Paper Details
Tribhuwan University
Faculty of Humanities and Social Sciences
OFFICE OF THE DEAN
2020
Bachelor of Computer Applications
Course Title: Object Oriented Programming in Java
Code No: CACS204
Semester: Third Semester
Full Marks: 60
Pass Marks: 24
Time: 3 hours
Candidates are required to answers the questions in their own words as far as possible.

Group B

Official Answer
AI Generated Answer

AI is thinking...

Attempt any SIX questions.

Official Answer
AI Generated Answer

AI is thinking...

2. Define OOP. Write the characteristics of OOP language.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

3. Explain the operators available in Java programming.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

4. Differentiate  between abstract class and interface with suitable example.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

6. Define access modifier. Explain access modifiers in java with examples.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

8. Write short note on (Any Two):

a) final keyword    b) Collection class    c) JDBC

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

Group C

Official Answer
AI Generated Answer

AI is thinking...

Attempt any TWO questions.

Official Answer
AI Generated Answer

AI is thinking...

9. a) Write a program to create and use the java package.

b) Define thread. Explain the life cycle of thread.

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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 example?

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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.


10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...