CSIT (CI)-305 (GS) – Object Oriented Programming and Methodology

B.Tech. III Semester
Examination, December 2025
Grading System (GS)
Max Marks: 70 | Time: 3 Hours

Note:
i) Attempt any five questions.
ii) All questions carry equal marks.

Previous Year Questions (December 2025)

Q.1

a) Examine the use of control statements in C++ programs. (Unit 1)


b) Write a C++ program that returns a reference from a function. (Unit 1)


Q.2

a) Compare object oriented programming with procedure programming. (Unit 1)


b) Explain the role of access modifiers in class design and compare access modifiers with examples. (Unit 2)


Q.3

a) Explain the various types of constructors with an example program. (Unit 2)


b) Discuss and compare runtime polymorphism and compile time polymorphism. (Unit 2)


Q.4

Explain the different types of inheritance with suitable examples. (Unit 3)

Q.5

a) Write C++ program to overload the '+' operator using member function to add two complex numbers? (Unit 3)


b) What is a friend function? Explain the need of using a friend function. (Unit 4)


Q.6

a) What is a virtual function? Explain the virtual function with an example program. (Unit 4)


b) Develop a C++ program illustrating assignment and copy initialization. (Unit 4)


Q.7

a) What is meant by initializing file stream objects? What are input and output streams? Give an example. (Unit 5)


b) Explain function and class template with suitable example C++ programs. (Unit 5)


Q.8

Write short notes on any two of the following.

(a) Exception handling (Unit 5)

(b) Pitfalls of operators overloading (Unit 3)

(c) Arrays of object and Arrays as class Member Data (Unit 2)

(d) In line functions and Returning values from functions (Unit 1)