06-25-2010, 10:22 AM
B.Tech. 2nd year (Main/Back) Examination, February-2010
Electrical & Electronics Engineering
(3EX2 Object Oriented Programming Using C++)
1. (a) Why structures are heterogeneous data type? Explain with suitable example.
(b) Differentiate between call by value, cell by address and cell by reference.
OR
1. (a) differentiate between:
(i) Array and Link List
(ii) Structure and Class.
(b) Write an algorithm to search an element in doubly link list?
2. (a) Why Object Oriented Programming approaches are preferred form of programming over other approaches?
(b) What do you mean by base class and derived class?
Create a base class PAIR and derived class MYPAIR and show the effect when PAIR is inherited in public and private visibility mode by MYPAIR.
OR
2. (a) What is the difference between defining a member function inside and outside the body of a class?
(b) Differentiate between Private and Protected specifier using an example.
3. (a) What do you mean by constructor and destructor? How these are different from normal function?
(b) List the operators that can't be overloaded and justify why these operators can't be overloaded?
OR
3. (a) What is friend function? Explain a normal function which adds the private data of complex number class? Declare this normal function as friend of the complex class?
(b) Explain Function overloading using an example.
4. (a) What are the rules that need to be kept in mind during declaring the virtual function? Explain with suitable example.
(b) Write a program explaining the concept of Multilevel Inheritance.
OR
4. (a)What is the basic difference between Inline function and Virtual function?
(b) Explain the virtual base class and Abstract class with suitable example.
5. (a) What is a class template? Explain syntax of class template with an example.
(b) Write a program to open a file named "Record.bio" and use the operation of reading and writing record on the file and then displaying.
OR
5. (a) Explain use of the function:
(i) fgetc
(ii) fputc
(iii) fclose
(iv) seek
(b) Explain various modes of file and their uses.
Electrical & Electronics Engineering
(3EX2 Object Oriented Programming Using C++)
1. (a) Why structures are heterogeneous data type? Explain with suitable example.
(b) Differentiate between call by value, cell by address and cell by reference.
OR
1. (a) differentiate between:
(i) Array and Link List
(ii) Structure and Class.
(b) Write an algorithm to search an element in doubly link list?
2. (a) Why Object Oriented Programming approaches are preferred form of programming over other approaches?
(b) What do you mean by base class and derived class?
Create a base class PAIR and derived class MYPAIR and show the effect when PAIR is inherited in public and private visibility mode by MYPAIR.
OR
2. (a) What is the difference between defining a member function inside and outside the body of a class?
(b) Differentiate between Private and Protected specifier using an example.
3. (a) What do you mean by constructor and destructor? How these are different from normal function?
(b) List the operators that can't be overloaded and justify why these operators can't be overloaded?
OR
3. (a) What is friend function? Explain a normal function which adds the private data of complex number class? Declare this normal function as friend of the complex class?
(b) Explain Function overloading using an example.
4. (a) What are the rules that need to be kept in mind during declaring the virtual function? Explain with suitable example.
(b) Write a program explaining the concept of Multilevel Inheritance.
OR
4. (a)What is the basic difference between Inline function and Virtual function?
(b) Explain the virtual base class and Abstract class with suitable example.
5. (a) What is a class template? Explain syntax of class template with an example.
(b) Write a program to open a file named "Record.bio" and use the operation of reading and writing record on the file and then displaying.
OR
5. (a) Explain use of the function:
(i) fgetc
(ii) fputc
(iii) fclose
(iv) seek
(b) Explain various modes of file and their uses.