Monday, June 2, 2008

Object Oriented Programming with C++

2037/DC4 May 2006
Paper IV - Object Oriented Programming with C++
Time: Three Hours Maximum: 100 marks

Part A - ( 20 x 2 = 40 marks)
Answer ALL the questions
  1. State advantages of providing default argument in function
  2. Define abstract class
  3. What is used to destroy an object? illustrate
  4. define identifier.
  5. What are the applications of void data type in C++?
  6. Mention the use of default constructor.
  7. What is an object?
  8. State any two advantages of new operator.
  9. What is conversion function?
  10. What is stream?
  11. Define preprocessor.
  12. What is the use of private visibility mode? Illustrate
  13. Define array pointers
  14. When do you use delete function?
  15. Illustrate the use of setw functions in C++
  16. Name any four non-printable characters.
  17. Define data hiding.
  18. What is a template?
  19. Define static data member.
  20. When do you use ifstream class in C++?

    PART B ( 5x12 = 60 Marks)
    Answer ALL the questions
  21. (a) When do we use the public and protected visibility modes in C++? Explain.
    (b) Write a C++ program to find the average of two values using friend function.
    or
  22. (a) What do you mean by dynamic constructors explain with example.
    (b) Write a C++ program to concatenate two strings using + operator

  23. (a) Explain the type conversion and type casting.
    (b) What are the console i/o operations? Explain.
    or
  24. (a) Explain the use of pointer in derived class with suitable example.
    (b) Exemplify the use of command line arguments in C++

  25. (a) What is meant by anonymous union? Illustrate with an example.
    (b) Explain the use of inline functions with an example
    or
  26. What are the control statements used in C++? explain with examples.

  27. What is operator overloading? Explain how unary and binary operators are overloaded.
    or
  28. What is an exception handler? What are the key words used to handle the exception in C++? Explain.

  29. Explain how mulitple inheritance differ from multilevel inheritance. Illustrate with examples.
    or
  30. Explain the connection between Ploymorphism and Virtual functions. Demonstrate the use of virtual functions using C++ codes.

No comments: