0% found this document useful (0 votes)
95 views2 pages

Department of Computer Science & Engineering Question Bank: Constructors, Destructors

This document contains question banks for the subject "Object Oriented Programming" with the subject code CS2203. It is divided into two units. Unit I covers classes, objects, data abstraction, encapsulation, inheritance and polymorphism. Unit II covers class definitions, constructors, destructors, scope resolution operator and benefits of OOP. There are multiple choice and descriptive questions in each part to test students' understanding of key concepts in object oriented programming.

Uploaded by

jeswinsimon
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views2 pages

Department of Computer Science & Engineering Question Bank: Constructors, Destructors

This document contains question banks for the subject "Object Oriented Programming" with the subject code CS2203. It is divided into two units. Unit I covers classes, objects, data abstraction, encapsulation, inheritance and polymorphism. Unit II covers class definitions, constructors, destructors, scope resolution operator and benefits of OOP. There are multiple choice and descriptive questions in each part to test students' understanding of key concepts in object oriented programming.

Uploaded by

jeswinsimon
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

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?


2. List the different phases of C++? How to form variable?
3. Name the input and output statement in C++.
4. What are the two types of the members of the class and how are they declared?
5. What is meant by binding?
6. Define the terms data abstraction
7. What is encapsulation?
8. What is the basic difference between private and protected?
9. What is the basic difference between C and C++?
10. 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

4. Define class and object with example.


5. 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.

You might also like