You are on page 1of 4

[EURCS 206]

B.Tech. DEGREE EXAMINATION


II SEMESTER OBJECT ORIENTED PROGRAMMING WITH C++
(Effective from the admitted batch 200809)

(Common for CSE, IT, Mech. & MMM branches)


Time: 3 Hours Max.Marks: 60 -----------------------------------------------------------------------------------------------------Instructions: Each Unit carries 12 marks. Answer all units choosing one question from each unit. All parts of the unit must be answered in one place only. Figures in the right hand margin indicate marks allotted. -----------------------------------------------------------------------------------------------------

UNIT-I 1. Enumerate and explain the advantages of Object Oriented Programming.


OR

12 6 6 6 6 6 6

2. a) Briefly explain the identifiers and constants used in C++. b) What are the derived data types available in C++? Explain with suitable examples. UNIT-II 3. a) What are the advantages of function prototypes in C++? b) When do we need to use default arguments in a function?
OR

4. a) What is a class? How does it accomplish data hiding? b) What is a friend function? What are the merits and demerits of using friend function? UNIT-III 5. a) What is a constructor? Is it mandatory to use constructors in a class? b) Describe the importance of destructors.

6 6

OR

6. a) Describe the syntax of multiple inheritance. When do we use such an inheritance? b) When do we make a class virtual? What is an abstract class? UNIT-IV 7. a) What does polymorphism mean in C++ language? b) How is polymorphism achieved at i) COMPILE TIME and ii) RUN TIME?
OR

6 6 6 6

8. a) Explain, with an example, how you could create space for an array of objects using pointers. b) What does this pointer point to? UNIT-V

6 6

9. a) A template can be considered as a kind of macro. Explain the difference between them. 6 b) Distinguish between the terms class template and template class. 6
OR

10. a) What is an exception? How is an exception handled in C++? b) What is an exception specification? When is it used?

6 6

[3789/II S/108]

[EURCS 206]

B.Tech. DEGREE EXAMINATION


II SEMESTER OBJECT ORIENTED PROGRAMMING WITH C++
(Effective from the admitted batch 200809)

(Common for CSE, IT, Mech. & MMM branches)


Time: 3 Hours Max.Marks: 60 -----------------------------------------------------------------------------------------------------Instructions: Each Unit carries 12 marks. Answer all units choosing one question from each unit. All parts of the unit must be answered in one place only. Figures in the right hand margin indicate marks allotted. -----------------------------------------------------------------------------------------------------

UNIT-I 1. Enumerate and explain the advantages of Object Oriented Programming.


OR

12 6 6 6 6 6 6

2. a) Briefly explain the identifiers and constants used in C++. b) What are the derived data types available in C++? Explain with suitable examples. UNIT-II 3. a) What are the advantages of function prototypes in C++? b) When do we need to use default arguments in a function?
OR

4. a) What is a class? How does it accomplish data hiding? b) What is a friend function? What are the merits and demerits of using friend function? UNIT-III 5. a) What is a constructor? Is it mandatory to use constructors in a class? b) Describe the importance of destructors.

6 6

OR

6. a) Describe the syntax of multiple inheritance. When do we use such an inheritance? b) When do we make a class virtual? What is an abstract class? UNIT-IV 7. a) What does polymorphism mean in C++ language? b) How is polymorphism achieved at i) COMPILE TIME and ii) RUN TIME?
OR

6 6 6 6

8. a) Explain, with an example, how you could create space for an array of objects using pointers. b) What does this pointer point to? UNIT-V

6 6

9. a) A template can be considered as a kind of macro. Explain the difference between them. 6 b) Distinguish between the terms class template and template class. 6
OR

10. a) What is an exception? How is an exception handled in C++? b) What is an exception specification? When is it used?

6 6

[3789/II S/108]

You might also like