Latest NewsAnna Univ. UG/PG April/May/June 2014 Exams| UG Timetable | PG Timetable|Latest News
Latest NewsAnna University Important Questions April 2014 8th Semester Download ClickHereLatest News

CS2203 - Object oriented programming question bank (Part 1)


UNIT I
PART-A

State the characteristics of procedure oriented programming.
What are the features of Object Oriented Programming?
Distinguish between Procedure Oriented Programming and Object Oriented Programming.
List out the basic concepts of Object Oriented Programming.
Define Objects.
Define Class.
Define Encapsulation and Data Hiding.
Define Data Abstraction.
Define data members and member functions.
State Inheritance.
State Polymorphism.
List and define the two types of Polymorphism.
State Dynamic Binding.
Define Message Passing.
List out some of the benefits of OOP.
List out the applications of OOP.
What are the input and output operators used in C++?
List out the four basic sections in a typical C++ program.
Define token. What are the tokens used in C++?
Explain the difference between Structure and Class.
Define identifier. What are the rules to be followed for identifiers?
Define an enumeration data type.
List out the new operators introduced in C++.
What is the use of scope resolution operator?
Define the 2 memory management operators.
List out the advantages of new operator over malloc ().
Define manipulators. What are the manipulators used in C++?
What are inline functions?
Explain typecasting.
Define function overloading.
List out the limitations of function overloading
State the difference between structures and class.
List the access modes used within a class.
How can we access the class members? 
 What is a nested class? What is its use?
Where can we define member functions?
What is static data member?
What is static member function?
What is a constant function?
Define reference variable in C++.
What is overriding?
What is a volatile function?
Define friend function?
What are constant objects?
How can we use pointers with an object?
What is a local class?

    PART-B

    Explain in detail about the Basic Concepts of object oriented programming.
    Explain the elements of object oriented programming.
    Explain in detail about the reference variables.
    What are the difference between reference variables and normal variables?
    Explain about call-by-reference and return by reference.
    a. Describe the advantages of OOP.
    b. What are the difference between pointers to constants and constant to pointers?
    a. Describe the applications of OOP technology.
    b. What is function overloading? Explain briefly with program.
    Write a program to demonstrate how a static data is accessed by a static member function.
    What is friend function? What is the use of using friend functions in c++? Explain with a program.
    a. Discuss in detail about default arguments with an example.
    b. Explain about constant and volatile functions with an example.
    Describe Abstract class. Illustrate an example to explain it.
    Write a program to implement nested classes using c++.
    Write a program to get the employee details and print the same using pointers to objects and pointers to members of a class. Create a class employee. And use appropriate functions and data members.










      UNIT II

      PART-A


      Define Constructor.
      List some of the special characteristics of constructor.
      Give the various types of constructors.
      What are the ways in which a constructor can be called?
      Define default constructor
      Define parameterized constructor
      Define default argument constructor
      Define copy constructor
      Define dynamic constructor
      Define multiple constructors
      State dynamic initialization of objects.
      Define Destructor.
      Give the general form of an operator function.
      List some of the rules for operator overloading.
      What are the types of type conversions?
      What is an explicit constructor?
      What is operator overloading?
       How are operators overloaded?
       Why are they overloaded?
       List out the operators that cannot be overloaded.
       List out the operators that cannot be overloaded using Friend function.
       Explain basic to class type conversion with an example.
       Explain class to basic type conversion with an example.
       Explain one class to another class conversion with an example.

      PART-B

      1)      Explain copy constructor and destructor with suitable C++ coding.
      2)      Explain about Implementation of simple ADTs.
      3)      Explain with the program about multiple constructors.
      4)      Explain in detail about constructor with dynamic allocation.
      5)      With an example explain about operator overloading through friend functions.
      6)      What is a virtual destructor? Explain the use of it.
      7)      Explain about Unary Operator and Binary Operator Overloading with program.
      8)      List out the rules for overloading operators with example.
      9)      Define a supplier class. Assume that the items supplied by any given supplier are different and varying in number. Use dynamic memory allocation in the constructor function to achieve the solution.
      10)  Define an examiner class. Provide all necessary data and function members to provide the following: The examiner must access answer sheets of at least one subject; He may examine answer sheets of multiple subjects; The examiner represents a college and also a university; Most of the examiners are local and represent local university; and have more than one constructor including one default and one with default argument. Provide a meaningful copy constructor.
      11)  Define a person class with more than three constructors. Define data and function members in the class such a way that all three constructors are meaningful


      UNIT III

      PART-A
      What is generic programming? How it is implemented in C++?
      What are function templates?
      What is the need for function templates? How are they created?
      How is a function template overridden for a specific data type?
      What are class templates?
      What is the need for class templates? How are they
       created?
      What is the difference between template function and template class?
      What is exception handling?
      What is the need for exception handling?
      What is the difference between macro and templates?
      Which three keywords are provided by c++ for implementing exception handling?
      Why nested exception classes needed?
      How are uncaught exception caught?
      What are the limitations of exception handling in c++?

      PART-B

      1) What is the need of Templates? Explain.
      2) Explain about function templates?
      3) Implement selection sort as a generic function.
      4) Implement quick sort as a generic function.
      5) Write a program for generic queue class with two member functions, insert and delete. Use the array to implement the queue.
      6) Define a stack. The class should throw an exception when the stack underflow and overflow takes place.
      7) Using the Time class, throw an exception when invalid time is input, write set_terminate to provide your own terminate function, which care of this problem.
      8) What is uncaught exception function? Give an example.
      9) What are the use of terminate () and Unexpected functions? Explain with a program.
      10) How to use multiple catch functions inside a program? Explain with a program.
      11) Write all blocks of exception handling? Explain with a program.

      UNIT IV

      PART-A

      What is meant by inheritance?
      Give the syntax for inheritance.
      What are the types of inheritance?
      Define single inheritance.
      Define multi-level inheritance.
      Define multiple inheritance.
      Define Hierarchical inheritance.
      Define Hybrid inheritance.
      What is a virtual base class?
      What is an abstract class?
      Define Polymorphism?
      What are the types of polymorphism?
      Define ‘this’ pointer.
      What is a virtual function?
      What is a pure virtual function?
      How can a private member be made inheritable?
      What do you mean by inline function?
      What are virtual classes?
      19.  Difference between realloc () and free?
      20.  What is RTTI? What are its practical uses?
      21.  How can typeid operator be used to find the type of a particular object?
      What is dynamic casting?
      What is cross casting?
      What is down casting?
      What are the advantages of inheritance?
      What are polymorphic objects?
      What is role of typeid operator in RTTI?

        PART-B
        What are the different forms of inheritance supported in c++? Explain with an example.
        Discuss on the visibility of base class members in privately and publicly inherited classes.
        Explain in detail about virtual base class with an example.
        Explain in detail about multiple inheritance with an example.
        Explain how pure virtual function is implemented.
        What are abstract classes? Give an example (with the program) to illustrate the use of abstract classes.
        Explain in detail about Virtual function with example.
        Explain about Exceptions Handlers and Standard Exceptions.
        When working with templates do we need to use RTTI? Explain with example.
        Discuss in detail about Dynamic Casting.
          UNIT V
          PART-A

          1.      What are streams? Why they are useful?
          2.      What are input and output streams?
          3.      Briefly describe the class hierarchy provided by c++ for stream handling.
          4.      What is the difference between a text file and a binary file?
          5.      How can a file be opened for both reading and writing?
          6.      Describe the following manipulators setw(), setprecision(),  setfill(),
                       Setiosflags(),resetiosflags().
          7.      What is a file pointer?
          8.      What is a command-line argument?
          9.      How will you create manipulators?
          10.  Write the syntax and use of getline () and write () functions.
          11.  What are the differences between manipulators and ios functions?
          12.  What is the need for string objects?
          13.  Compare C strings with C++ strings.
          14.  What is meant by object serialization?
          15.  What is name conflict problem? How can it be solved using namespaces?
          16.  How can we define our own namespace?
          17.  How can we define our functions inside the namespace and use them outside?
          18.  What is unnamed namespace? What is the use of unnamed namespace?
          19.  How can we extend a namespace already defined? What is its advantage?
          20.  What is std namespace? How it is different from other namespaces?
          21.  What is STL? How it is different from C++ standard library?
          22.  List the three types of containers.
          23.  What is the major difference between sequence container and an associative container?
          24.  What is an iterator? What are the its characteristics?
          25.  Explain how sequence iterators work.
          26.  Explain how sorted associative containers work.
          27.  How are the STL algorithms implemented?
          28.  Distinguish between the following:
          a.       Lists and vectors
          b.      Sets and maps
          c.       Maps and multimaps
          d.      Queue and deque
          e.       Arrays and vectors

          PART-B

          Discuss about C++ Stream classes hierarchy.
          Write notes on Formatted and Unformatted Console I/O Operations.
          Explain about File Pointers and their manipulations with example.
          Give the differences between Manipulators and ios Functions.
          How can we determine errors while dealing with files.
          Explain in detail about the facilities available for substring operations on the string object?
          Explain in detail about Sorted Associative Containers.
          Discuss about different ways of defining namespaces.
          Explain in detail about Adapted Containers.

            1 comments:

            nice blog thanks a lot

            Reply

            Post a Comment

            Post Your comments,Views and thoughts Here, Give Us Time To Respond Your Queries