Professional Documents
Culture Documents
1
II B.Tech II Semester Supplimentary Examinations, Aug/Sep 2008
OBJECT ORIENTED PROGRAMMING AND APPLICATIONS
(Instrumentation & Control Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
1. (a) State and explain different object oriented features and non-object oriented
features in C++. [10]
(b) Compare C++ with C language and explain with examples. [6]
2. (a) What is meant by CRC cards? How these are useful in OOD?
(b) What is Cohesion and Coupling? How these should be useful for an effective
OOD. [16]
3. (a) Justify that Stack is an example for abstract data types. [6]
(b) What is instance and instance variable? [5]
(c) What is state and behavior of an object? [5]
4. (a) What is stack-based storage allocation? Give its advantages and disadvan-
tages.
(b) Explain “Memory leak”. How memory leak can be avoided in C++? [8+8]
5. State and explain different forms of Inheritance. Which forms of inheritance are
supported by C++ and Java. Give suitable examples. [16]
6. (a) What is a virtual method? Discuss with an example the significance of using
virtual methods in C++.
(b) Compare multiple inheritance in C++ with multiple inheritance which can be
simulated in Java. [8+8]
7. (a) Describe the issues in binding and message look up in subclasses and subtypes.
(b) Explain how legality of message passing expression is determined? Give an
example [8+8]
8. (a) Explain clearly the class “Button” in LAF (Little Application Framework).
[6]
(b) Show how a simple application that has three types of buttons is implemented
with LAF. [10]
⋆⋆⋆⋆⋆
1 of 1
Code No: RR222202 Set No. 2
II B.Tech II Semester Supplimentary Examinations, Aug/Sep 2008
OBJECT ORIENTED PROGRAMMING AND APPLICATIONS
(Instrumentation & Control Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
3. (a) Differentiate between Facilitator classes and Data source classes. [6]
(b) Differentiate between operation and method in Object Oriented Development.
Which will be used at design state, weather methods or operations? [10]
5. (a) What is subclassing specialization? Give one example in C++ and JAVA.
(b) What is subclassing for specification? Give one example in C++ and JAVA.
[8+8]
6. (a) Discuss virtual inheritance in C++ from the point of view of Parnas’s principle
on information hiding.
(b) What is meant by method binding? Should the message bind to the method
associated with the static type or to that associated with dynamic type? [8+8]
7. (a) What is virtual and non-virtual overloading? Give suitable examples. [10]
(b) Explain about polymorphic variables in C++. [6]
⋆⋆⋆⋆⋆
1 of 1
Code No: RR222202 Set No. 3
II B.Tech II Semester Supplimentary Examinations, Aug/Sep 2008
OBJECT ORIENTED PROGRAMMING AND APPLICATIONS
(Instrumentation & Control Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
3. (a) Differentiate between inline function and simple function in C++. Give an
example to each of them.
(b) What is operator overloading? State the OOP languages which support ist.
[8+8]
4. (a) Explain clearly with an example how object creation and initialization will be
done in Java. [10]
(b) Weather Java supports destructor? Why? [6]
5. (a) What is the necessity of function overriding? Give a real world example to it.
[6]
(b) Describe the arguments that can be made in data types associated with a
parent class to the data types associated with a derived class. [10]
7. (a) What are Class Templates and Function Templates? Give a sample program
in C++ to describe their usage.
(b) Explain about polymorphic variables in C++ and give suitable example.[8+8]
⋆⋆⋆⋆⋆
1 of 1
Code No: RR222202 Set No. 4
II B.Tech II Semester Supplimentary Examinations, Aug/Sep 2008
OBJECT ORIENTED PROGRAMMING AND APPLICATIONS
(Instrumentation & Control Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
1. (a) State and explain the David Parnas principles for proper use of modules. [6]
(b) What are abstract data types? Explain with an example. Give the conditions
to be satisfied to build the abstract data types. [10]
2. (a) State and describe the responsibilities of a school. Identify atleast six types of
members i.e students, teachers, principal etc. For each member type, describe
the responsibilities and collaborators. [10]
(b) Create a scenario for above school using an interaction diagram. [6]
4. Explain clearly with suitable classes, methods, and attributes one solution to the
Eight-Queens puzzle in JAVA. [16]
5. (a) What is Inheritance? State and explain its advantages and disadvantages. [10]
(b) Explain with a real world example about different uses of inheritance. [6]
⋆⋆⋆⋆⋆
1 of 1