You are on page 1of 19

B. TECH.

SIXTH SEMESTER EXAMINATION, 2006 - 2007 OBJECT ORIENTED SYSTEMS

Time : 3 Hours Note : (i) Attempt All Questions (ii) All questions carry equal marks.

Total Marks : 100

Q1. Attempt any two parts of the following: a) Prepare a class diagram from the following instance diagram.
(Person) A grandmother Child (Person) An aunt Child (Person) A cousin Cousin Sibling (Person) your father Child (Person) You Male (Person) A grandfather Child Male (Person) Your Mother Child

b) A directory file contains information about files in a directory, including both ordinary files as well as other directory files. Prepare an object diagram which model directory files and ordinary files. Since a directory plus a file names as qualifies. c) Following portion of a meta-model describes a generalization. A generalization is associated with several generalization relationships. Role type is either subclass or superclass. Does this model support multiple inheritance? Explain your answer.

Q2. Attempt any two parts of the following: a) Write scenarios for the following activities: i) Moving a bag of corn, a goose, and a fox across a fiver in a boat. Only one thing may be carried in the boat at a time. If the goose is left alone 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 safety transported across the river. ii) An elevator ride to the top. b) An extension ladder has a rope, 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 them freely raise or lower the extension. The latch produces a clacking sound as it passes over rungs of the ladder. The latch 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. c) Explain the following terms, with example: i) Dynamic model ii) Aggregation iii) Nested diagram

Q3. a) Discuss various features of OMT. b) Compare SA/SD and JSD (Jackson structured development) methodologies. c) 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 two ways of implementing the data flow diagram.

Q4. Attempt any two parts of the following: a) What are the different layouts available in Java? Explain each with suitable skeleton code.

b) Write a procedure to create and import the package in a java program. Which event handling a 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.

Q5. Attempt any two parts of the following: a) Discuss the various features of the Lavatron applet and scrabbles. b) Discuss any six methods available in Dynamic Billboard applet. c) Explain the procedure of JDBC connectivity in Java with Windows database. A data of 100 students having following fields in records is to be imported in Java. Record Structure: Name : Character array of 100 Address: Character array of 200 Roll Number: integer Amount Due: Float Marks: Integer Grade: Single Character having values from A B C D or E

B. TECH. SIXTH SEMESTER EXAMINATION, 2007 - 2008 OBJECT ORIENTED SYSTEMS

Time : 3 Hours Note : (i) Attempt All Questions (ii) All questions carry equal marks. (iii) In case of numerical problems assume data wherever not provided. (iv) Be precise in your answer.

Total Marks : 100

Q1. Answer any four parts of the following:

(54=20)

a) What is short circuiting? Give reasons why exception handling techniques should not be used for conventional program control. b) Explain the following terms with suitable examples: i) Links ii) Association c) How do we use templates in generic programming? Why? d) What is polymorphism? Explain. e) Explain the different kinds of inheritance. f) Difference between the generalization and specialization. Explain utility of these

Q2. Attempt any four parts of the following:

(54=20)

a) What is state diagram? Draw the nested stated diagram of any suitable examples.

b) Write in short about a dynamic model and its advantages and disadvantages with example. c) What is concurrency? How is it used? d) What do you mean by event trace? Explain event trace for a bug in a program. e) What do you understand by scenario? Write scenario for: write a program for a problems. Checking mails in inbox.

Q3. Attempt any four parts fo the following: a) What is a stream in Java? What is the difference between a binary and text stream? b) Write short notes on: i) Object modeling techniques. ii) SA and SD. c) Explain Multiprocessing and Multithreading with the help of suitable programmes. d) What do you understand by operation in functional modeling and object modeling?

Q4. Attempt any two parts of the following: a) How do we handle deadlock in case of multithreading? b) What is AWT? Explain its applications and working with windows.

(102=20)

c) Give reasons why exception handling techniques should not be used for conventional program control. Discuss how exception handling is done in java?

Q5. Write notes on any four: a) IO Streams. b) Lavatron Applets

(54=20)

c) Packages in Java d) Dynamic Billboard Applet e) Java Swing. f) Java Servlet

B. TECH. FOURTH SEMESTER EXAMINATION, 2008 - 2009 OBJECT ORIENTED SYSTEMS

Time : 3 Hours Note : (i) Attempt All Questions (ii) All questions carry equal marks.

Total Marks : 100

(iii) In case of numerical problems assume data wherever not provided. Be precise in your answer.

Q1. Answer any four parts of the following:

(54=20)

a) Why is Java known as platform neutral languages? And secured than other languages. b) What is thread? Discuss java thread model. c) What is nesting of classes? Why we use it? d) How do we use templates in generic programming? e) How java is strongly associated with the Internet? Comment on this Java is a robust language having all OOP features. f) Why is Java known as true object oriented and secured than other languages? Explain Java is free form language.

Q2. Attempt any four of the following:

(54=20)

a) What is state diagram? Draw the nested state diagrams of any suitable example. b) Write a note on dynamic model. c) What do you mean by event trace? Explain event trace for a bug in a program.

d) What do you understand by scenario? Write scenario for Writing an algorithm for a problem. Going for a drive.

e) What is concurrency? How it is used in Java? f) What are static functions and static variables in a class? What are limitations and advantages of having such variables and classes?

Q3. Attempt any four of the following: a) Write short notes on: i) Object modeling techniques. ii) SA and SD

(54=20)

b) Comment on this Java facilities doing many processes at a time? And explain with the help of a program showing multiprocessing and multi-threading. c) What do you understand by operation in functional modeling and object modeling? d) What is stream in Java? What is the difference between binary and text stream? How do we handle deadlock in case of multithreading? e) Prepare a data for diagram for computing the volume and area of rectangle and circle. Input length and width of rectangle and radius of a circle. f) The total distance traveled by a vehicle in 1 seconds is given by distance=u.t + at 2 /2 where u is the initial velocity (meters per second), a is the acceleration (meter per second2). Prepare a data flow diagram to evaluate the distance traveled at regular intervals of time, given the values of u and a. flexibility is provide to the user to select his own time intervals and repeat the calculations for different values of u and a.

Q4. Attempt any two parts of the following: a) What is AWT? Explain its applications and working with windows.

(102=20)

b) What is Polymorphism? How overriding is different from overloading? c) What are different kind of inheritance? What is multiple inheritances? State purpose of an inheritance. Explain with example of Runnable interface.

Q5. Write notes on any four: a) Java Beans b) Brief functions of uupper layer email. c) Differences between C++ and Java. d) Dynamic Billboard Applet e) Java swing. f) Java Servlet.

(54=20)

B. TECH. THIRD SEMESTER EXAMINATION, 2009 - 2010 OBJECT ORIENTED SYSTEMS

Time : 3 Hours Note : (i) Attempt All Questions (ii) All questions carry equal marks.

Total Marks : 100

Q1. Attempt any four parts: a) What is object oriented methodology? b) Explain links and association with suitable examples. c) Differentiate between aggregation and association.

(54=20)

d) Prepare a portion of an object diagram for a library book checkout system that shows the data book in due and the late charges for an over due book as derived objects. e) Explain generalization and inheritance with example. f) What is meta data? How it is important in object oriented methodology?

Q2. Attempt any four parts: a) What is dynamic modelling? What is its importance? b) What are nested state diagrams? Explain b takinh a suitable example.

(54=20)

c) Prepare a list of objects that you would expect of the system to handle Telephone Ansering Machine. d) What do you mean by aggreagation concurrency?

e) Explain event and state by taking a suitable example. f) Discuss various ways of implementing DFD.

Q3. Attempt any two parts:

(102=20)

a) What si functional modeling? What are its advantages? Describe the relation of functional model, object model and dynamic model. b) What is JSD? Compare between SA/SD and OMT modeling. c) What is Java foundation classes? Prepare a data flow diagram for computing the volume and a surface of cylinder. Inputs are the height and radius of the cylinder. Output are volume and surface area. Discuss several way of implementing the data flow diagram.

Q4. Attempt any four parts:

(54=20)

a) How are methods and data organised in an object oriented program? With an example. b) What are command line arguments? Write a program for finding factorial for a given number using command line argument? c) What is type casting? What is it required in programming? d) What is copy constructor? Explain with example. e) What is an interface? Write a program to find the area of the circle by using interface. f) How many types of layout manager are used in java programming? Describe each type in short.

Q5. Attempt any two parts:

(210=20)

a) What is swing? How it differs with AWT? Write a program in swing which shows two input boxes names uses id and passwords. b) What is applet, define its life cylcle? Hwo servlets are different from applet? Write a program in servlet which prints the word hello.

c) Write short notes on any two: i) ii) iii) iv) JDBC Differentiate between java and C++ Java Beans Lavatron applet

B. TECH. FIFTH SEMESTER EXAMINATION, 2010 - 2011 OBJECT ORIENTED TECHNIQUES

Time : 3 Hours Note : (i) Attempt All Questions (ii) All questions carry equal marks.

Total Marks : 100

Q1. Answer any two parts: a) i) What do you mean by encapsulation? How does the object-oriented concept of message passing help to encapsulate the implementation of an object, including its data? ii) What do you mean by polymorphism? Is this concept only applicable to object oriented systems? Explain. b) i) What do you mean by activity diagram? What are the two special states shown in an activity diagram? Explain with an example. ii) Define an abstract class. When is it required to create an abstract class? Explain it with an Example c) Define object-modeling technique (OMT). Describe various steps involved in OOM Process. Explain it with an example. Can you implement multiple inheritance in Java?

Q2. Attempt any two parts; a) Design an AUTOMOBILE base class in java. Define its all methods and data structures. Through inheritance mechanism, create one class namely CAR. Implement its data structures and importance methods. Observe the following while designing the classes: i) Clearly indicate private and public classes. ii) Design constructors in each class and explain its purpose.

iii) Identify data structure and methods which can be inherited (Make suitable assumption where required). b) What do you mean by a collaboration diagram? Explain various terms and symbols used in a collaboration diagram. How polymorphism is described using a collaboration diagram? Explain using an example. c) i) What do you understand by architectural modeling? Explain its various concepts and diagrams with suitable example. ii) Write a short note on use case diagram and time diagram with suitable diagram and their utility in system design.

Q3. Answer any two parts: a) Describe the following with example: i) ii) iii) iv) Steps of object oriented design. Generalization and specialization. Modeling association as a class. Physical packaging.

b) i) How do you map the object oriented concepts using non-object oriented languages? Explain with an example. ii) Describe the various features of object oriented languages. Also compare any two object oriented languages. c) Write short notes on the following: i) Reusability and robustness. ii) Translating object oriented design into an implementation.

Q4. a) (i) Describe the main features of Java. Also disucss the features that make Java different from C++.

(ii) what do you mean by multithreading? Does it have an impact on the performance of Java? Explain. b) (i) Write a program in Java to calculate the sum of the digits of a given positive integer number. For example, f the given number is 12345 then the program should display:15. (ii) Design a class using Java to represent a student record having the following attributes and methods: Attributes are as follows: Entroll_no, Name, Father_name, Branch, Year_of_admission, student_semester, Student_address, Student status. The methods are as follows: to assign the initial values to all attributes, to admit a new student, display the list of students admitted in a given year.

c) Write short notes on the following: i) Enterprise Java Beans ii) Abstract methods and classes.

Q5. (a) What do you uunderstand by ODBC? Why is it required? How is it implemented using Java? Explain with an example. (b) (i) Define Applet. Also disucss Applet life cycle using a diagam and explain its various states. (ii) Write a Short note on the utility of Java as Internet programming language. (c) Write short notes on the following witht suitable examples: i) ii) Java Services. Exception Handling Techniques

B. TECH. FIFTH SEMESTER THEORY EXAMINATION, 2011 - 2012 OBJECT ORIENTED TECHNIQUES

Time : 3 Hours Note : (i) Attempt All Questions (ii) Make suitable assumptions if required.

Total Marks : 100

Q1. Answer any two parts :

(102=20)

a) (i) What do you understand by Object Oriented Technology? Discuss the pros and cons of object oriented technology with suitable examples. (ii) Differentiate between a class and object with some example. Also prepare a list of objects that you would expect w=each of the following systems to handle: A program for laying out a newspaper. A catalogue store entry systems. b) (i) What do you mean by modeling? Discuss several purposes served by models with suitable examples. (ii) What do you mean by generalization? Explain. How is it related with inheritance? c) (i) What do you mean by UML? Discuss the conceptual model of UML with the help of an appropriate example. (ii) wire is used for the following applicatons. For each of the following applications, prepare a list of wire echaracteristics that are relevant and also explain why each characteristics is important for the applications: Designing the filament for a light bulb; Designing the electrical system for an airplane.

Q2. Answer any two parts:

(102=20)

a) (i) Give the general layout of a class diagram. Also prepare a class diagram for the instance diagram shown in the fig. Explain you multiplicity decision. How does your diagram express the fact that points are in sequence?

(Point) -10 10

next

(Point) 10 10 next

Polygon next (Point) -10 -10 Last First next (Point) 10 -10

(ii) What is a collaboration diagram? How polymorphism is represented in a collaboration diagram? Explain with an example. b) What do you mean by a sequence diagram? Explain various terms and symbols used in a sequence diagram? Explain the following using a sequence diagram: Asynchronous message without/with prority. Broadcast message. c) Discuss In brief the following terms: Component diagram. Basic Behavioral Modeling.

Q3. Attempt any two parts: a) Explain each of the following with in reference to object oriented programming style with an example:

i) ii) iii) iv)

Reusability Robustness Extensibility Abstraction.

b) (i) How objects oriented concepts can be implemented usng non-object oriented language? Explain with an example. (ii) What do you mean by documentation? What are the various considerations in documentation designing? Explain? c) Write short note on the following: Jackson Structured Development (JSD) Dynamic modeling and functional modeling. (102=20)

Q4. Answer any two parts:

a) (i) Why Java is know nas platform independent language? Discuss the advantages and disadvantages of a platform independent language. Also give various data types in Java. (ii) How polymorphism is handled in Java? Explain with some suitable example using Java Programming Language. b) (i) Write a program in java to count display the frequency of vowels in a given sentence of at lrast 35 characters long. (ii) design a class using Jav to represent a student record having thte following attributes and methods: Attributes of student institute are as follows: Student_Id, Student_Name, Student_Adddress, Birth_Date, Course, Enrollment_Year The methods are s follows: to assign the initial values to all attributes, to add a new student record display the list of students for a given year of enrolment and course. c) Write short notes on the followings giving their significance with suitable example using Java in brief: i) Enterpriese Java Beans

ii)

Java API.

Q5. Answer any two parts of the following:

(102=20)

a) (i) What do you mean by applets? How applets differ from the applications? Explain using an example in Java. (ii) Write a short note on Java Swing with suitable example. b) Write a short note on the following with an example using Java: i) ii) iii) iv) JAR file Packages Multithreading Interface

c) What do you mean by JDBC? What is its significance? How database connectivity is done using java? Discuss it with suitable examples.

You might also like