This is the question set along with answers of 2014 Spring Object-Oriented Language, which was taken by Pokhara University. The 2014 Spring Object-Oriented Language is given below:
POKHARA UNIVERSITY
Level: Bachelor | Semester – Spring | Year: 2014 |
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. Give your answer in few lines.
- What is Java Virtual Machine and Bytecodes?
- Explain in brief JDK & JRE.
- What is the scope of a variable?
- List Java’s primitive data types.
- Can we declare a class as private? Justify your answer.
- 6 Differentiate between Method Overloading and Method Overriding.
- Explain interfaces and packages.
- How to throw and rethrow an exception?
- What is the purp0se of SimpleDataFormat class?
- What is the difference between A WT and swing?
The answers to the above 10 questions
Section “B
Descriptive Answer Questions
Attempt any six questions
11. Write a Java program to read the 10 integer numbers from the user. Sort it and display the maximum and minimum number in the array.
12. What is the use of constructors in programming? Develop a short program to illustrate constructor overloading.
13. Explain the types of Inheritance in Java? Does Java support Multiple Inheritance? Justify your answer with an example.
14. What is an Exception? Write a program to create your own exception class.
15. Write a program to write an integer, double and Boolean data in a file. And again read those data from the 1iie and display it in console called
16. What are the advantages of using a set interface in comparison to a list? Write a program demonstrating the use of Set and HashSet.
17. Why the components of java.swing packages are highly in use in comparison with java.awt packages?
Section “C
18. Develop an applet that receives three numeric values as input from the user, finds the sum of that three numbers and then displays the largest number among that input three numbers on the screen. Write an HTML page and rest the applet.
You may also like Pokhara University || Spring 2017 || Object-Oriented Programming
Leave a Reply