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?
- List the different phases of C++? How to form variable?
- Name the input and output statement in C++.
- What are the two types of the members of the class and how are they declared?
- What is meant by binding?
- Define the terms data abstraction
- What is encapsulation?
- What is the basic difference between private and protected?
- What is the basic difference between C and C++?
- What is the basic difference between class and object?
PART B
- Explain C++ control statements with example
- Define class and object with example
- Write a programs
(i)
Generates a Fibonacci series
using class and object.
(ii)
Generates prime number using
class and object
- Define class and object with example.
- 1) Explain object-oriented paradigm with all its essential elements.
2) State the merits and demerits of object oriented
methodology.
UNIT II
PART A
- What is a class? What are parts of class specification?
- What is constructor? What is its role?
- How does constructor differ from normal function..
- What is a scope resolution operator and how it can be used for global variable?
- Name the input and output statement in C++.
- What are the benefits of OOP?
- What is the basic difference between union and structure?
PART B
- Explain the declaration of class in C++ .How will you define the member function of a class? Explain
- Explain the function of constructor with their declaration and definition inside class.
- Write a C++ program to implement stack and its operations PUSH and POP.
- 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