(Please write your Enrolment No. immediately) Enrolment No ...ltA.:f:....... .
MID TERM EXAMINATIOl~
B. TECH PROGRAMME S (UNDER THE AEGIS OF USICT) _.
3 rd _Semester, November, 2023
Paper Code: CIC 211 Subject: Object-Oriented Programming using C++
Time: 1 :30 Hrs. Max Marks: 30
I
I Note: Attempt Q. No. 1 which is compulsory and any two more questions from remaining.
-------------------------------------------------------------------------------------------------------------------
II
Q. No. Question Max.Marks CO(s)
I
Explain inline function with example. 2 COi
Explain the concept of array of objects and pointers to objects 3 CO2
with an exam le
What is this pointer. 2 COi
Discuss the importance of Data Abstraction and Encapsulation 3 COl.
with a real time exam le.
2a Design a class from which only one object can be created. If 4 CO2
more than one ob·ect is created the ro ram should terminate.
b Name the operators that cannot be 'overloaded. Justify why 6 CO3
they cannot be overloaded? Write program to overload<< and
>> o erators in com lex numbers.
Display a stack program in C++ using class, overloaded 7 CO2
constructors, member functions(push,pop), friend function
dis la stack content
y Differentiate between run time polymorphism and compile 3
time ol mor hism.
CO2
Explain default,, par~tecized coostr.u.ctor and copy 5 CO3
construe r with an exam le?
Define dynamic memory ~cation. Write a C++ progra!" to 5 CO2,
illustrate new ancfdelete o era tors. Explain why new is better CO3
than ma oc in C.