Skip to content
Previous Year Question Paper

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

November 2022•CSIT•SEMESTER-3
November 2022
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

Compare Object oriented and Procedure programming in detail. [7 Marks]

b)Unit 1

Describe the Loop and Arrays in C++. [7 Marks]

Q.2
a)Unit 2

Write a C++ program to show the concept of class, object and calculate the area of rectangle, square and circle by using function overloading. Define scope and life of any variable. [7 Marks]

b)Unit 3

Write a C++ program to prepare the mark sheet of an university examination with the following items from the keyboard: Name of the student Roll No. Subject name Subject code Internal marks External marks Design a base class consisting of data members Name of the student and Roll No. The derived class consists of the data members subject name, subject code, internal marks and external marks. [7 Marks]

Q.3
a)Unit 3

What do you mean by Operator overloading? How unary and binary operators are implemented using the member and friend functions? [7 Marks]

b)Unit 3

Describe the multiple inheritances with example. When do we use such an inheritance? [7 Marks]

Q.4
a)Unit 4

What is Virtual function? Explain with suitable example. [7 Marks]

b)Unit 4

Describe dynamic memory allocation in C++ with suitable example. [7 Marks]

Q.5
a)Unit 4

Explain the concept of virtual function, friend function and static function by writing its syntax. Also discuss the role of 'Virtual function' and 'Abstract class'. [7 Marks]

b)Unit 2

What is Dynamic initialization of objects? Why is it needed? How is it accomplished in C++? Illustrate. [7 Marks]

Q.6
a)Unit 4

Explain Virtual function and write its purpose. [7 Marks]

b)Unit 2

Describe the concept constructor and destructor. Write the importance of constructor and destructor. [7 Marks]

Q.7
a)Unit 2

Explain in detail about Exception and how they handled? Define Function template and Class template. [7 Marks]

b)Unit 4

Discuss the term 'Polymorphism' in detail. What are the different ways to implement polymorphism in C++? Explain them in brief. Differentiate between compile time and run time polymorphism. [7 Marks]

Q.8
i)Unit 5

Disk file I/O with stream

ii)Unit 2

Static function

iii)Unit 4

Runtime polymorphism

iv)Unit 2

Data hiding