Professional Documents
Culture Documents
1
II B.Tech II Semester Supplimentary Examinations, Aug/Sep 2007
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) What is the use of “finalize” method in Java? Shall it take any arguments
and shall it return any result. [6]
(b) Suppose in a language which does not provide direct support for immutable
instance variables, how do you design a software tool that would help to detect
violations of access? [10]
5. (a) Describe the subclassing for Extension. Give one example. [10]
(b) Describe subclassing for Limitation. [6]
⋆⋆⋆⋆⋆
1 of 1
Code No: RR222202 Set No. 2
II B.Tech II Semester Supplimentary Examinations, Aug/Sep 2007
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 structures in C and structures in C++. Give one exam-
ple to each.
(b) Describe with an example the message passing syntax in C++. [8+8]
5. (a) Describe the subclassing for Extension. Give one example. [10]
(b) Describe subclassing for Limitation. [6]
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]
⋆⋆⋆⋆⋆
1 of 1
Code No: RR222202 Set No. 3
II B.Tech II Semester Supplimentary Examinations, Aug/Sep 2007
OBJECT ORIENTED PROGRAMMING AND APPLICATIONS
(Instrumentation & Control Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
2. What is RDD? Illustrate the application of RDD with a case study. [16]
3. (a) What are state attributes of a class? Explain their dynamic use.
(b) Discuss about object declaration and an object instantiation? Give one ex-
ample in C++. [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. State different forms of Inheritance. Give example to each form in JAVA. [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) Discuss the Reverse Polymorphism Problem with suitable real world example.
(b) What is meant by overriding of data fields? Which OOP language will support
it? Describe with an example. [8+8]
⋆⋆⋆⋆⋆
1 of 1
Code No: RR222202 Set No. 4
II B.Tech II Semester Supplimentary Examinations, Aug/Sep 2007
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) What are state attributes of a class? Explain their dynamic use.
(b) Discuss about object declaration and an object instantiation? Give one ex-
ample 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) Discuss the Reverse Polymorphism Problem with suitable real world example.
(b) What is meant by overriding of data fields? Which OOP language will support
it? Describe with an example. [8+8]
⋆⋆⋆⋆⋆
1 of 1