Professional Documents
Culture Documents
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]
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]