Question Paper: Object Oriented Programming Using Java : Question Paper May 2016 - Computer Engineering (Semester 5) | Gujarat Technological University (GTU)
0

Object Oriented Programming Using Java - May 2016

Computer Engineering (Semester 5)

TOTAL MARKS: 100
TOTAL TIME: 3 HOURS
(1) Question 1 is compulsory.
(2) Attempt any four from the remaining questions.
(3) Assume data wherever required.
(4) Figures to the right indicate full marks.
1 (a) Explain features of Java.(7 marks) 1 (b) Explain Thread life cycle and describe creation of thread with suitable example.(7 marks) 2 (a) Differentiate between Method overloading and Method overriding.(7 marks)


Solve any one question from Q2(b) & Q2(c)

2 (b) Explain following with example:
i) Finalize()
ii) static
iii) super
iv) final
(7 marks)
2 (c) The abstract vegetable class has three subclasses named Potato, Brinjal and Tomato. Write a java prog. That demonstrates how to establish this class hierarchy. Declare one instance variable of type String that indicates the color of a vegetable. Crete and display instances of these objects. Override the toString() method of object to return a string with the name of vegetable and its Color.(7 marks)


Solve any two question from Q3(a), Q3(b) & Q3(c), Q3(d)

3 (a) Describe Inheritance and its type with suitable example.(7 marks) 3 (b) Explain use of Interface with suitable example.(7 marks) 3 (c) Write a method for computing xy doing repetitive multiplication. X and y are of type integer and are to be given as command line arguments. Raise and handle exception(s) for invalid values of x and y.(7 marks) 3 (d) Differentiate between interface and abstract class.(7 marks)


Solve any two question from Q4(a), Q4(b) & Q4(c), Q4(d)

4 (a) List out the steps of preparing domain class model. What are the criteria for identifying right classes?(7 marks) 4 (b) What do you mean by an event in state diagram? Discuss various types of events.(7 marks) 4 (c) What do you mean by object-orientation? Briefly discuss the characteristics of object oriented approach.(7 marks) 4 (d) Explain various steps required for class design.(7 marks)


Solve any two question from Q5(a), Q5(b) & Q5(c), Q5(d)

5 (a) Prepare a sequence diagram for issuing book in the library management system.(7 marks) 5 (b) Explain 'ordered', 'bags', 'sequences' in class diagram with suitable examples.(7 marks) 5 (c) Explain Nested States. Draw the Nested states diagram for the phone line.(7 marks) 5 (d) Define the following terms:
Aggregation, Abstract Class, Generalization, Reification, Constraints, Package, Metadata.
(7 marks)

Please log in to add an answer.