0% found this document useful (0 votes)
3 views

18CSC202J-QP

This document outlines the B.Tech. Degree Examination for the course 'Object Oriented Design and Programming' for the Third Semester, including instructions for answering the exam. It provides a series of questions related to class design, operator overloading, inheritance, exception handling, and algorithms, with options for students to choose from. The exam is structured into two parts, with Part A requiring OMR sheet responses and Part B requiring detailed written answers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

18CSC202J-QP

This document outlines the B.Tech. Degree Examination for the course 'Object Oriented Design and Programming' for the Third Semester, including instructions for answering the exam. It provides a series of questions related to class design, operator overloading, inheritance, exception handling, and algorithms, with options for students to choose from. The exam is structured into two parts, with Part A requiring OMR sheet responses and Part B requiring detailed written answers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Reg. No.

B.Tech. DEGREE EXAMINATION, DECEMBER 2022


Third Semester

18AIC203J/18CSC202J – OBJECT ORIENTED DESIGN AND PROGRAMMING


(For the candidates admitted from the academic year 2018-2019 to 2021-2022)
Note:
(i) Part - A should be answered in OMR sheet within first 40 minutes and OMR sheet should be handed
over to hall invigilator at the end of 40th minute.
(ii) Part - B should be answered in answer booklet.

Time: 2½ Hours Max. Marks: 75


PART – B (5  10 = 50 Marks)
Marks BL CO PO
Answer ALL Questions

26. a. Design a class for an EB bill consist of unit consumed, consumer name as 10 2 1 1

data members, read and bill calculation are the member function. The
following are the changes of unit consumed
(i) For first 100 units: 40 P/unit
(ii) Next 200 units: 50 P/unit
(iii) Beyond 300 units: 60 P/unit
Write a C++ programming for the implementation of above scenario.

(OR)
b.i. Distinguish between aggregation and composition. 4 3 1 3

ii. Draw a UML class diagram to capture the following situation. 6 2 1 4

“Every student is enrolled in a course. Each student may be enrolled


in a set of units. Some units are core units for one or more course and some
units are elective units for one or more courses”.

27. a. Explain the binary operator overloading and implement the same for 10 2 2 1

complex number addition and subraction.

(OR)
b. Explain different types of inheritance with suitable diagram and make a 10 2 2 4

class named fruit with a data member to calculate the number of fruits in a
basket. Create two more class called Orange and Mangoes to calculate the
number of Orange and Mangoes in a basket and print the same.

28. a. Explain the following with suitable code snippet. 10 2 3 1

(i) Inline function


(ii) Friend function
(iii) Virtual function

(OR)
b. Draw and explain state chart and activity diagram for E-store checkout. 10 6 3 1

Page 1 of 2 07DF3/18AIC203J/18CSC202J
29. a. Write a C++ program for user defined exception that checks the internal 10 2 4 4

and external marks, if the internal is greater than 30 and if external marks
is greater than 70. It raises the exception “MARKS EXCEEDED”. Create
the above exception and test the exceptions.

(OR)
b. Explain the class and function template with suitable program. 10 1 4 2

30. a. Explain the following algorithms 10 2 6 2

(i) Find ( ) (ii) Count ( ) (iii) Sort ( ) (iv) Search ( )


(OR)
b. Write a simple C++ program to read the data from text file and also write 10 6 6 2

the data into the file.

*****

Page 2 of 2 07DF3/18AIC203J/18CSC202J

You might also like