CS102301
rd
B.Tech.-3 Semester Examination Nov-Dec 2021
Branch: [CSE, CSE (DS), CSE(AI), CSE(AIML),CSE(IOT), CSE(BDA), CSE(GT),
CSE(IOT&CSBT)]
Course: Object Oriented Programming with C++
Maximum Marks: 100
Time Allowed: 3 Hours Minimum Marks: 35
_____________________________________________
Note: (i) Attempt all questions. Part (a) from each question is compulsory and carries 4 marks,attempt any two parts from part (b),
(c) and (d) carrying 8 marks each.
CO1:- Students will understand the concepts of flow of control, abstraction, pointer and recursion.
CO2:- Analyze a simple programming problem specification.
CO3:- Design a high-level solution to the problem using functional abstraction and general imperative
programming language constructs.
CO4:- Write, compile, execute and debug a C++ program which maps the high-level design onto concrete C++
programming constructs.
Q. No Questions Marks CO BL PI
Q.1 a) Define the structure of C++ programming with
4 CO1 L1 1.7.1
program.
b) Differentiate between object oriented and
8 CO2 L2 1.2.1
procedural programming language.
c) Explain the basic concepts of object oriented
8 CO1 L2 2.5.2
programming.
d) Explain function overloading concept with
8 CO1 L2 1.2.1
suitable program.
Q.2 a) Define static members with example. 4 CO2 L2 1.2.1
b) What is friend function? Write its characteristics
8 CO2 L5 1.2.1
andprogram.
c) Explain any five predefined function of Strings
8 CO2 L1 2.8.2
withprogram.
d) Write short notes on : (Any two)
i) Nested class
4 each CO2 L1 1.3.1
ii) local class
iii) abstract class
Q.3 a) What is the pointer? 4 CO3 L3 5.4.1
b) What do mean by memory allocation? How is
8 CO3 L1 1.3.1
dynamicallocation done? Explain with example.
c) What are constructor and its type? Explain copy
8 CO3 L4 1.2.2
constructor with example.
d) Write a program using C++ to count the number
8 CO3 L2 1.3.1
of objects using static member function.
Q.4 a) What virtual base class? Explain what is object
4 CO4 L4 1.2.1
composition and delegation.
b) Write a program to demonstrate the conversion 8 CO4 L2 1.2.1
between basic type to class type and class type to
class type.
c) Write a C++ program to add two complex
8 C04 L1 1.2.1
numbers using overloading concept.
d) Explain different type of inheritance. Explain the
8 C04 L1 1.2.1
ambiguity associated with multiple inheritances.
Q.5 a) Explain virtual function with program. 4 CO5 L5 1.1.1
b) What is template class? Write a program to show
8 CO5 L1 1.3.1
the use of template class.
c) What is exception handling? What is the use of
exception handling? Explain the try catch and 8 CO5 L1 1.3.1
throw with example.
d) What is file stream? Write a C++ program which
counts the total number of character in a file 8 CO5 L5 3.1.6
“abc.txt”.
CO- Course Outcomes, BL– Bloom’s Taxonomy, PI– Performance Indicator
**********************