Published by: sadikshya
Published date: 24 Jun 2021
This is the question set along with answers of Object-Oriented Programming Spring 2017, which was taken by Pokhara University.
POKHARA UNIVERSITY – Object-Oriented Programming Spring 2017
Level: Bachelor Semester: Spring Year:2017
Program: BBA/BBA-BI/BCIS/BHCM/BBA-TT Full Marks: 100
Course: Object-Oriented Programming Pass Marks: 45
Time: 3 hrs
Section “A”
Very Short Answer Questions
Section “B”
Descriptive Answer Questions
Attempt any six questions
11. a) What is a constructor? Explain constructor overloading with an example.
b) Differentiate between Abstract classes and Interfaces.
12. a) Explain different types of exception available in java? How the Exception can be handled in java. Explain.
b) What is thread priority? Write a program to create multiple threads and set different priority to run the thread on priorities basis.
13. Explain Byte Streams and Character Streams. What is the purpose of Data Input Stream and Data Output Stream classes? Write a program to write an integer, double and Boolean data in a file called “data.txt”. And again read those data from the file and display it in the console.
14. a) Explain layout managers that are available in Java.
b) Write a command-line argument program to accept three numbers and find the smallest one.
15. a) What are Collections? Explain the uses of Array List with an example.
b) Write a program that takes two strings from the user and check whether they are identical or not.
16. a) What are the advantages of using the Set interface in comparison to List? Write a program demonstrating the use of Map and HashMap.
b) What is wrapper class? Explain wrapper classes available in java.
17. What is Inheritance? Explain types of inheritance with a suitable figure and example. Explain why multiple inheritances are not supported by java.
Section “C”
Case Analysis
ABC Company approaches to develop desktop-based application software of Student Management System. They have divided the software development process into 3 phases. In the first phase, they need
“Login System and Employee Registrations”. The “Login System” looks like below:
PICTURE
You are required to design the GUI same as in the above figure of Login GUI.
ii. You are required to design the GUI same as in the above figure of Register User GUI.
iii. In the “Register User” screen, when the user clicks on " Add" button, then all the supplied information is received and displays to the user with the help of the dialogue box of J Option Pane.