OODP1
OODP1
Object Oriented Design And Programming (SRM Institute of Science and Technology)
32o59
Reg. No. R A22|o
,MAY 2023
B.Tech/ M.Tech (Integrated) DEGREE EXAMINATION,
Second& Third Semester
PROGRAMMING
21CSC101T-OBJECT ORIENTED DESIGNTAND
2022-2023 onwards)
(For the candidates admitted from the academic year should be
handed over
Note: OMR sheet
minutes and
(i) Part- Ashould be answeredin OMR sheet within first 40
tohall invigilatorat the end of 40h minute.
(ii) Part - B and Part - C should be answered in answer booklet. Max. Marks: 75
allows
programs programmer to write specific
(C) A feature that allows codes for a problem
to make programmodularprogrammer (D) A feature that does not add
any
power to the language
14. What is an
exceptionin C++ program?
(A) A problem that arises during 1 2 4 2
the (B) A problem that arises
executionof aprogram compilation
during
(C) Syntax error (D) SemanticerrOr
15. is used to
system.
visualize the topology of the physical components of a 11 4 3
(OR)
h Draw the UML use case diagram for the library management system. The 4 1 3
system will have two users Librarian and student with the following
functions.
Librarian functions: Add books, Add student, Add publication,Issue book,
Return book, Apply penalty,View report
Studentfunctions:Search book, Issue book, Return book, Penalty report,
Change password.
8 3 2 2
22.a. Write a CPP program to add and subtract two complex numbers using
operatoroverloadingconcept.
(OR)
8 4 2 3
b. Create the sequence and collaborationdiagram for withdrawalscenario in the
bank ATM system. The system starts the process by employing a standard
procedurefor validatingthe card and account holder.
8 3 3
23. a. Write a CPP program to differentiateearly binding and late binding with the
help of virtual functions.
(OR) 3
8 4 3
b. Draw the activity diagram with swim lanes for railway reservation system.
The passenger should be able to book ticket in online railway reservation
system. The diagram should include fork, joint, decisionetc.
3 4 2
24. a. Write a CPP program to find the largest of two numbers using function
templates.
(OR) 8 4 4 3
b. Developthe componentsand deploymentdiagram for online bankingsystem.
8 3 5
23. a. Explain in detal about the components that make up the Standard Template
Libraries(STL).
(OR)
Page 3of4 29MF2&3-21CSC101T
b. Write aCPP program to demonstratethe working of STL stack with the STL 8 4
functions.
PART-C(1x 15 = 15 Marks) Marks BL
26. Create a class named Triangle' with two private data members, base and 15 4
height and one function to calculatethe area of triangle.The class should have
the followingconstructors:
() Having no parameter- values of both base and height are assigned
Zero
(ii) Having two parameters-toassign values to base and height
(iii) Having one parameter - assign value through parameter for base
and assign height = 4
(iv) Having a copy constructorto copy values of one object to another
Create objects for the classes and calculate the area of triangle and print the
area.