Showing posts with label DC 4. Show all posts
Showing posts with label DC 4. Show all posts

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.

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.