0% found this document useful (0 votes)
20 views2 pages

Q. No. Question Description Marks: Page 1 of 2

This document outlines the Term End Examinations (TEE) for the Object Oriented Programming with C++ course, detailing the exam structure and questions. It includes two parts: Part A with programming tasks related to C++ concepts such as function design, inheritance, and STL operations, and Part B focusing on operator overloading and class templates. The exam is scheduled for May 2022, with a total of 50 marks available.

Uploaded by

AD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views2 pages

Q. No. Question Description Marks: Page 1 of 2

This document outlines the Term End Examinations (TEE) for the Object Oriented Programming with C++ course, detailing the exam structure and questions. It includes two parts: Part A with programming tasks related to C++ concepts such as function design, inheritance, and STL operations, and Part B focusing on operator overloading and class templates. The exam is scheduled for May 2022, with a total of 50 marks available.

Uploaded by

AD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Reg. No.

:
Name :

TERM END EXAMINATIONS (TEE) – May 2022


[Link] – BCY, BAI, BCE, BCG, Winter 2021-22
Programme : Semester :
BHI, BSA, MIM, MEI
Object Oriented Programming with
Course Name : Course Code : CSE2001
C++
Faculty Name : Dr. Kannan Shanmugam Slot / Class No : E21+E22+E23/0472
Time : 1½ hours Max. Marks : 50

Answer ALL the Questions

Q. No. Question Description Marks

PART - A ( 30 Marks)
1 (a) Write a C++ program to implement the following concepts for find greatest among 3 10
integer values
i. Design a function with parameter passing and returning a value
ii. Design a function NOT passing a parameter and NOT returning a value

OR
(b) Demonstrate the use of friend function by find the result of a student on his/her marks 10
in theory and practical. Consider the below statements for implementation. Use 2
independent classes to represent theory and practical. The member functions of each
class can get, calculate and display the respective marks. Define a friend function to
calculate the result. The result may be calculated based on the minimum marks
secured in both theory and practical.
2 (a) Implement function overriding to print the resultant value of parent and child class 10
members. Define the member functions of parent and child class to perform addition
and multiplication respectively to calculate the resultant value to be printed in
display(). Override display() method of parent and child class.

OR
(b) Write a CPP program to implement Hybrid Inheritance to find the result of a student. 10
Consider the class derivation as follows
I. Parent Class “student” with get_student(),put_student() as member function.
II. Derived class “Internal” with get_int_marks(), put_int_marks() derived from
“student”
III. Derived class “External” with get_ext_marks(), put_ext_marks() derived from
“student”
IV. Derived class “Results” with find_result() derived from “Internal” and
“External” classes
NOTE: member function find_result() needs to be defined to find the sum of each

Page 1 of
2
subjects (number of subject is ‘N’) by adding internal and external marks together.
And check that the student has scored minimum mark in every subject to decide the
result as “PASS” o “FAIL”
3 (a) Write a CPP program to implement the below function in List STL 10
i. Insert()
ii. Push_back()
iii. Push_front()
iv. Pop_back()
v. Pop_front()
vi. Swap()
vii. Sort()
viii. Reverse()
ix. Unique()
x. Resize()

OR

(b) Write a CPP program to perform read and write operations on file using file streams 10

PART - B (20 Marks)

4 Implement binary operator overloading on the operator – (minus) and perform 10


addition among 3 class members of 2 objects. Give the necessary explanation for
required code using command line.

5 Write a CPP program to demonstrate the following 10


i. Class template with multiple parameters
ii. Function template with multiple parameters


Page 2 of
2

You might also like