Oops
Oops
Attempt any four parts of the following : (a) (b) (c) (d)
What do you understand by object oriented programming? List various advantages and disadvantages of object oriented programming. Explain the following: Abstraction, Encapsulation, Generalization, Polymorphism, and Inheritance. What is aggregation, association, and multiplicity? Explain with suitable examples. Explain OMT in detail. Prepare a portion of an object diagram for a library book checkout system that shows the date of book is due and the late charges for an overdue book as derived objects. A dictionary file contains information about files in a directory, including both ordinary files as well as directory files. Prepare an object diagram which models directory files and ordinary files. Since a directory plus a file name use as a qualifier. What is the difference between object and classes? Explain the multiple inheritance and candidate key in detail. (5 4 = 20)
(e)
(f)
2.
Differentiate object modeling and dynamic modeling with suitable example. Explain event, state, state diagram, nested state diagram using suitable examples.
(c)
An extension ladder has a rope, pulley, and latch for raising, lowering and locking the extension. When the latch is locked, the extension is mechanically supported and you may safely climb the ladder. To release the latch, you raise the extension slightly with the rope. You may then freely raise or lower the extension. The latch produced a clacking sound as it passes over rungs of the ladder. The ladder may be reengaged while raising the extension by reversing direction just as the latch is passing a rung. Prepare a state diagram of an extension ladder. Prepare the state diagram for the telephone answering machine. Machine should answer after five rings. If telephone is answered before five rings, the machine should do nothing. Be careful to distinguish between five3 calls in which the telephone is answered on the first ring and one call that ring s five times. What is the role of operations in dynamic modeling? How can you implement on the state diagram? Give example in your explanation. Write scenarios for the following activities: Moving a bag of corn, a goose, and a fox across a river in a boat. Only one thing may be carried in the boat at a time. If the goose is left with the corn, the corn will be eaten. If the goose is left alone with the fox, the goose will be eaten. Prepare a scenario in which everything is safely transported across the river.
(d)
(e) (f)
3.
(10 2 = 20)
What do you understand by operation in functional modeling and object modeling? Prepare a data flow diagram for an applet that receives temperature in centigrade and convert the temperature in Fahrenheit or vice versa. Take use of buttons and text fields for input, output and convert. What is the difference between actor and data store within a data flow diagram? Prepare a data flow diagram for computing the volume and surface area of a cylinder. Inputs are height and radius of the cylinder. Outputs are volume and surface area. Discuss other ways of implementing the data flow diagram. Explain the difference of functional modeling with object and dynamic modeling. Discuss the advantages and drawbacks of object oriented programming. Difference between actor and data store in a data flow diagram. (10 2 = 20)
(b)
(c)
4.
What are the different layouts available in Java? Explain each with suitable skeleton code. Write a procedure to create and import the package in a java program. Which event handling model is used by Java and why?
(c)
How images are handled by Java? Write a program to open any supported image format and change its contrast and brightness to the values entered by the user. Display original and modified images. (10 2 = 20)
5.
Attempt any two parts of the following: (a) (b) (c) Discuss the various features of the Lavatron applet and scrabbles. Discuss any six methods available in Dynamic Billboard applet.
Explain packages in JAVA. Explain the procedure of JDBC connectivity in JAVA with windows data base. A data of 100 students having following fields in records is to be imported in JAVA. Record structure: Name : Address : Roll Number Amount Due Marks : Grade : Character array of 100 Character array of 200 : Integer : Float Integer Single character having value from A, B, C, D or E.
Write a java program to import these records from windows and send them to output text file.