Thursday, April 17, 2008

Object Oriented Programming with C++

DC4 May 2007
Paper IV- Object Oriented Programming with C++

  1. List out the benifits of object oriented programming.
  2. Define encapsulation.
  3. What do you understood the identifier
  4. Why were computer programming languages were invented?
  5. Static member variables are defined _______________________ the class.
  6. Making an instance of one class a member of another class in called________________
  7. Find out the error, if any in the following statement.
    for (int i=0, i<0, i++)
    var--;
  8. Write the syntax for do..while loop.
  9. What do you mean be preprocessor directive?
  10. State whether True or False , inline functions overloading does not depend on return data type.
  11. State whether True or False, inline functions overloading does not depend on return data types
  12. List out the usage of scope resolution operator.
  13. Specify the rules for functions overloading.
  14. State whether True or False, Operator overloading creates a new operators.
  15. What is virutual function?
  16. List out any two manipulators.
  17. What do you mean by command line argument?
  18. Define file
  19. When a program is finished using a file, it should be _______________it?
  20. State whether True or False, it is possible to open a file for both input and output.
  21. (a) explain the differnce between procedural and object oriented programming
    or (b) List out the differen t types of control structures and explain with examples.
  22. (a) write short notes on
    (i) functions proetotype
    (ii) functions overloading.
    or (b) in C++ what are the possible ways of defining a member functions? Explain with an example
  23. (a) What do you mean by constructors? and explain the different types of constructors with examples
    or (b) Write short notes on, Friend functions vs inheritance.
  24. (a) What is multiple inheritance? Explain with a real world exampled
    or (b) Write short notes about 'this' pointer and it's usages.
  25. (a) What is the difference between a try block and a catch block? Explain with suitable example.
    or (b) compare formatted I/O and unformatted I/O and give some examples.

No comments: