C++ Practice questions for BSc Computer Science
Sample questions on object oriented programming (C++) for +3 computer science students under semester system
- Explain inline function and its advantages with example.
- What is function overloading ? What are its advantages.What are the rules for finding perfect match ?Give example.
- Explain the concept of class and object with example.Discuss different visibility tags.
- Explain with example how objects can be used to manipulate class members.
- Discuss about static data member and member functions.
- Write a program to show how objects can be passed as function arguments.
- What is friend function ? What are its advantages? give example.
- Explain the concepts of constructor with all its characteristics.
- What is copy constructor Give example.?
- Discuss about Destructor.Give a example to show how Destructors work.
- What is inheritance ? Discuss different types of inheritance.
- What is virtual base class ? Give example.
- Explain operator overloading.What is operator function ? Write a program to overload binary addition "+"operator.
- How exception is handled in OOP. ? Explain the mechanism.
- Write a program that will catch an exception of division by zero and take action.
- Write short notes on Virtual Function , This pointer.
0 Comments