Pokhara University, 2014 Spring Object Oriented Language || BCIS

2014 Spring Object Oriented Language

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.
  1.  What is Java Virtual Machine and Bytecodes?
  2. Explain in brief JDK & JRE.
  3. What is the scope of a variable?
  4. List Java’s primitive data types.
  5. Can we declare a class as private? Justify your answer.
  6. 6 Differentiate between Method Overloading and Method Overriding.
  7. Explain interfaces and packages.
  8. How to throw and rethrow an exception?
  9. What is the purp0se of SimpleDataFormat class?
  10. 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.

Be the first to comment

Leave a Reply

Your email address will not be published.


*