RTU Previous Question Papers BE EE 3rd Semester Computer Programming-1 January 2013

RTU Previous Question Papers BE EE 3rd Semester

Computer Programming-1 January 2013

 

1. Explain the following terms with suitable program code example.

(a) Class

(b) Inheritance

(c) Abstraction

(d)Polymorphism.

OR

1. What are main features of object oriented programming ? Explain with examples. Write a program to implement inheritance in C++. Also write some pre-defined data types in C++.

 

2    What is inheritance ? How multiple inheritance is implemented in C++ ? Explain with suitable example and write a program code for this in C++

OR

2    Write a program to demonstrate how to access public, private and protected members of a class. Also differentiate between object and a class.

 

3    What is a constructor ? Explain copy constructor with the help of a program.

OR

3    What is in-line function ? What are advantages of in-line function ? Write a program to show how in-line function is implemented.

 

4    What is a friend function ? Write a program that implements friend function and operator overloading

OR

4    What is virtual function ? Write a program to show how virtual functions are used.

 

5    What is I/O stream in C++ ? Write a program to insert and delete records from a file using file handling in C++.

OR

5    What is template class? What is template function? Write a program code that uses template function.

Leave a Comment