Skip to content
Previous Year Question Paper

CSIT-305 - Object Oriented Programming and Methodology (OOPM)

December 2023•CSIT•SEMESTER-3
December 2023
Max Marks: 70
Duration: Three Hours
Instructions:

• Attempt any five questions.

• All questions carry equal marks.

• In case of any doubt or dispute the English version question should be treated as final.

Q.1
a)Unit 1

What do you understand by object-oriented programming? What are the advantages of programming using object oriented? Explain and define various OOP concepts in brief.

b)Unit 1

Explain the concept of encapsulation and data abstraction in detail. Write a C++ program to show these concepts in object-oriented programming methodology. Define scope and life of any variable.

Q.2
a)Unit 2

Write a C++ program involving the handling of exceptions in constructors and destructors. Explain with an example.

b)Unit 2

What are the access modifiers? How many types of access modifiers are available in C++. Explain each one in detail and their role in implementing the data hiding in object-oriented programming.

Q.3
a)Unit 2

Explain the role of constructor and destructor in a class. What are the different types of constructors in C++? Discuss the copy constructor and parameterized constructor with appropriate example and syntax.

b)Unit 3

Explain the fundamental concept behind inheritance in object-oriented programming by taking an example. Define multiple, multilevel and hybrid inheritance with example and syntax.

Q.4
a)Unit 4

Explain the concept of association and aggregation in object-oriented approach. What is an Abstract class? Why Abstract classes are used?

b)Unit 3

Discuss Polymorphism in detail. What are the different ways to implement Polymorphism in C++; discuss them in brief. Give differences between function overloading and function overriding (or method overriding) by writing

Q.5
a)Unit 2

Write a C++ program to calculate the area of rectangle, square and circle using constructor overloading that accepts input from the user and then shows the desired result.

b)Unit 4

Write a C++ program demonstrating use of the pure virtual function with the use of base and derived classes.

Q.6
a)Unit 4

Explain the concept of multithreading in object-oriented programming approach with a suitable example? Discuss its benefits and drawbacks.

b)Unit 4

Write short notes on following concepts with a suitable example:

i) Virtual function

ii) Operator overloading

Q.7
a)Unit 2

What do you mean by the term class and object? What is the relation and difference between these two? Create a class with the following data members? Name of the class: student, Data members: name, roll number, branch, year, and college name, Member functions: put_details() and get_details() to set and display student details respectively?

b)Unit 1

Write short notes on following concepts with a suitable example:

Q.8
a)Unit 3

What is operator overloading? Write a distance class with data member for distance in meters, centimeter and millimeter. The class must be having overloaded operator + and – for addition and subtraction respectively.

b)Unit 1

Explain the difference between procedural programming language and object-oriented programming language. What are the merits and demerits object-oriented methodologies explain them?