Академический Документы
Профессиональный Документы
Культура Документы
KINGS
COLLEGE OF ENGINEERING
QUESTION BANK
SUBJECT CODE & NAME : CS 1261 – OBJECT ORIENTED PROGRAMMING
UNIT 1
OBJECT ORIENTED PROGRAMMING AND BASICS OF C++
PART - A
1. What the elements are of object oriented program? (2)
2. Give structure of c++ program? (2)
3. What is scope resolution operator? How to represent it? (2)
4. Differentiate Object oriented and Object based Programming languages. (2)
5. What is meant by data hiding? (2)
6. Name at least two Oops languages other than c++.(2)
7. List out any two drawbacks of Procedure oriented languages. (2)
PART - B
1. Basic concepts of oops(16)
2. What is Object oriented Paradigm? Explain the various Features of oops(16)
3. Advantages of Oop. (16)
4. Merits &Demerits(16)
5. Write about If. Else Statements and Switch Statement and Do…While Statement.
(16)
6. Write about functions in C++ in detail. (16)
UNIT 2
CLASSES AND OBJECTS
PART - A
1. What is the use of copy constructor? (2)
2. What is the need for having static members in a class? Give example. (2)
3. What is the variable in c++? How to form a variable? (2)
4. What is constructor? What is its role? (2)
5. What is class? What are parts of class speciation? (2)
6. What are the console operations in streams? (2)
7. Draw a stream class hierarchy(2)
8. What are the formatted and unformatted IO operations in stream classes? (2)
PART - B
1. Explain the declaration of a class in c++.How will you define the member function of a
class? Explain (16)
2. What is the need for parameterized constructor? Explain the function of constructors with
their declaration inside a class(16)
4. Explain all types of inheritance. (16)
5. What is virtual function? Give an example to highlight its need? (16)
6. What is a Friend function? Describe their benefits and limitations? Give suitable
example. (16)
7. What is meant by function overloading? Write the rules associated with function
overloading. Give suitable example to support your answer? (16)
8. Explain virtual base classes and virtual function, pure virtual function. (16)
UNIT 3
OPERATOR OVERLOADING, INHERITANCE AND POLYMORPHISM
PART - A
1. What are the types of inheritance? (2)
2. What are the type conversions? (2)
3. What is unique about this pointer? (2)
4. What are default pointers? When is it used? (2)
5. What are the operators cannot be overloaded? (2)
PART – B
UNIT 4
JAVA EVOLUTION, CONSTANTS, VARIABLES, DATA TYPES,
OPERATORS, CLASSES, OBJECTS, METHODS, ARRAYS AND STRINGS
PART – A
PART – B
1. Explain method overloading and method overriding with give suitable example. (16)
2. Explain vectors and their types. (16)
3. Explain classes and objects of java classes. (16)
4. Explain all types of inheritance. (16)
5. Explain all types of control structures and looping statements. (16)
UNIT 5
PROGRAMMING USING INTERFACES, PACKAGES, MULTITHREADING,
MANAGING ERRORS AND EXCEPTIONS AND APPLETS
PART – A
PART – B
1. Define packages. Explain in detail(16)
2. Develop a java program to illustrate the concepts of interfaces used to support
multiple inheritances. (16)
3. Explain Exception Handling and Multiple catch statement (16)
4. Explain Multithreading programming with suitable example(16)