Вы находитесь на странице: 1из 4

CS 1261 – OBJECT ORIENTED PROGRAMMING

KINGS
COLLEGE OF ENGINEERING

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

QUESTION BANK
SUBJECT CODE & NAME : CS 1261 – OBJECT ORIENTED PROGRAMMING

YEAR / SEM : III / V

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)

KINGS COLLEGE OF ENGINEERING, PUNALKULAM


CS 1261 – OBJECT ORIENTED PROGRAMMING

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)

KINGS COLLEGE OF ENGINEERING, PUNALKULAM


CS 1261 – OBJECT ORIENTED PROGRAMMING

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

1. Explain the operator overloading of Unary operators in C++.(16)


2. Explain the operator overloading of Binary operators in C++.(16)
3. How is type conversion implemented in C++?(16)
4. Elaborate upon the inheritance methods and describe with an example. (16)
5. Describe virtual functions with an example. (16)

UNIT 4
JAVA EVOLUTION, CONSTANTS, VARIABLES, DATA TYPES,
OPERATORS, CLASSES, OBJECTS, METHODS, ARRAYS AND STRINGS
PART – A

1. Define operators and separators. (2)


2. Explain data types in java. (2)
3. Define JVM (2)
4. Define variables and classes (2)
5. Explain objects of java classes(2)

KINGS COLLEGE OF ENGINEERING, PUNALKULAM


CS 1261 – OBJECT ORIENTED PROGRAMMING

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

1. Define packages (2)


2. Define interfaces(2)
3. What is exception handling? (2)
4. Define threads. (2)
5. Define synchronization. (2)
6. Define multithreading. (2)

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)

KINGS COLLEGE OF ENGINEERING, PUNALKULAM

Вам также может понравиться