Research Area

Ashutosh Dubey

Wednesday, January 20, 2010

PUT Questions

1. What do you understand by class and object? Explain by example.


2. What is meant by default argument in c++? .Write a small program to demonstrate its use. What are the limitation and advantages by example?

3. Define the class called cricket that will describe following information- player name, team name, batting average. Using cricket, declare an array player with 50 elements and a c++ program to read the information about all the 50 players and print a team wise list containing names of players with their batting average.

4. What is file mode? Describe the various file mode options available.

5. What is template? Explain function and class template.

6. What is Exception? How can exceptions are handled in C++.

7. What is this pointer? Discuss copy constructor.

8. Discuss about polymorphism and how it is achieved at compile time and run time.

9. What is function polymorphism? What is operator overloading? What are the rules for overloading operators?

10. Define and explain virtual function. What are rules for virtual function?

11. Write a program to read and write a complex numbers where p=a+ib.Here a is the real part of a complex number and b is the imaginary part of the complex number and i is a square root of -1.

12. What is friend function? Explain by example. What is abstract class and why it is needed. What restrictions are there on these classes?

13. What is inheritance? Explain about different forms of it by giving examples.

14. Why are protected members said to be "inheritance ready".

15. Compare aggregation and inheritance. Explain the properties of aggregation. Types of aggregation.

16. Explain constructor and destructor with example.

17. What is object-oriented programmin? How it is different from POP.

18. What is meant by data encapsulation? What are their advantages?

19. What are static data member? How are they declared? Write a program to display the use of static data members.

20. Explain Data Abstraction. With there Different forms.

No comments: