Published by: sadikshya
Published date: 24 Jun 2021
This is the question set along with answers of 2016 Fall Object-Oriented Language, which was taken by Pokhara University.
POKHARA UNIVERSITY (2016 Fall Object Oriented Language)
Level: Bachelor | Semester – Fall | Year: 2016 |
Program: BCIS | Full Marks: 100 | |
Course: Object Oriented Language(Java) | Pass Marks: 45 | |
Time:3hrs | ||
Candidates are required to give their answers in their own words as far as practicable. | ||
The figures in the margin indicate full marks. |
Section “A”
Very Short Answer Questions
Attempt all the questions
Section “B”
Descriptive Answer Questions
Attempt any six questions.
11. How does a package differ from an interface? Explain the Dynamic method dispatch with suitable.
12. What is multithreading? Write a program to demonstrate how to create the thread in java.
13. Explain the deadlock scenario in JAVA. Write a program to create your exception class.
14. Define Object and Class. Create a class time with required data members and member function to display the time format is HH:MM:SS after adding two-time objects given by the user and return
new time objects.
15. Write the difference between Array List and Link List? Explain the uses of Array List with an example.
16. Write a program to write an integer, double and Boolean data in a file called “Pokhara.dat”. And again read those data from the file and display it in the console.
17. Explain types of inheritance with suitable example.
18. Section “B”
Lincoln College is thinking of building a desktop-based application to keep the record of students of the colleges. You as a software developer have to design the prototype and present a demo of the first phases of the desktop-based application. You are requested to develop an application as per the question given below:
PICTURE
Figure 1: Login Dialog
a) Design Login Dialog same as in figure 1 with the following information.