AnnaUniversity-Object Oriented Programming-Object Oriented Programming QuestionPapers


DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
QUESTION BANK

SUBJECT CODE :     CS2203
SUBJECT NAME :    Object Oriented programming

Portions for Unit Test I :  Unit I +  Unit II ( upto constructors, destructors)


UNIT  I

PART A

1.  What is the basic difference between class and structure?
  1. List the different phases of C++? How to form variable?
  2. Name the input and output statement in C++.
  3. What are the two types of the members of the class and how are they declared?
  4. What is meant by binding?
  5. Define the terms data abstraction
  6. What is encapsulation?
  7. What is the basic difference between private and protected?
  8. What is the basic difference between C and C++?
  9.  What is the basic difference between class and object?
PART B
  1. Explain C++ control statements with example
  2. Define class and object with example
  3. Write  a programs
(i)                 Generates a Fibonacci series using class and object.
(ii)               Generates prime number using class and object

  1. Define class and object with example.
  2.   1) Explain object-oriented paradigm with all its essential elements.
  2) State the merits and demerits of object oriented methodology.









UNIT II
PART A

  1. What is a class? What are parts of class specification?
  2. What is constructor? What is its role?
  3. How does constructor differ from normal function..
  4. What is a scope resolution operator and how it can be used for global variable?
  5. Name the input and output statement in C++.
  6. What are the benefits of OOP?
  7. What is the basic difference between union and structure?


PART B

  1. Explain the declaration of class in C++ .How will you define the member function of a class? Explain
  2. Explain the function of constructor with their declaration and definition inside class.
  3. Write a C++ program to implement stack and its operations PUSH and POP.
  4. What are the rules associated with constructor and destructor functions in a class? Illustrate with example the various ways of defining them.

No comments:

Post a Comment