Professional Documents
Culture Documents
PART A (5 x1 =5)
ANSWERALLTHEQUESTIONS
Q.No Question Marks CO BL Pl
PART B (2x 4= 8)
Answer any TW0 out of THREE questions
Q.No, Question Marks CO BL PI
List out the syntax of class, objects and methods and explain with 4 1 2.4.2
Example.
Describe the access specifiers used in C++. 4 1 2 5.4.2
8 Lllustrate the Use case diagram for an ATM Transaction process 4 2 3.4.2
PART C(1x 12= 12)
ANSWER THE FOLLOWING QUESTIONS
Q.No. Question Marks | CO BL PI
Implement the O0P's concept and write an program to display
9a) student details with regno, name and three subjcct marks and 12 3 5.3.1
calculate the average marks using class and objcct.
(OR)
9b)
Explain about the looping and control statements with an
suitable program 12 1 4 2.5.2
BL
I|T APURAM SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
SRM RAMAPURAM CAMPUS
FACULTY OF ENGINEERINGANID TECHNOLOGY
DEPARTMENTOF COMPUTER SCIENCE AND ENGINEERING
CONTINUOUS LEARNING ASSESSMENT-2
ACADEMIC YEAR (2022-23)
Sub Code/Name 21CSC101T/Object Oriented Design and Set ODD
Programming
Year/Sem/Branch /I/ CSE and Specialization Date |31.03.23
Max. Marks 50 Duration 1.30 IHour
PART A (10X 1=10)
ANSWER ALL THE QUESTIONS
Q.No. MCQ Questions Marks Co BL PI
What happens if a user forgets to define a constructor inside a
class?
a) Error occurs
1. b) Segmentation fault 1 1.2.1
c) Objects are not created properly
d) Compiler provides a default constructor to avoid
faults/errOrs
Destructor has a same name as the constructor and it is
preceded by?
a. !
2. 1
b, ~ 2 L2.1
c. $
d. ?
Which of the following is the perfect set of operators that
can't be overloaded in CPP?
3.
a. t=,?,::,>>
b. >>, <<, 2,*,sizeof) 1 2 12.1
c. ::,.,.,?:
d. :, ->, *, new delete
What will happen while using pass by reference?
a) The values of those variables are passed to the function so
that it can manipulate them
b) The location of variable in memory is passed to the
4. function so that it can use the same nemory area for its 1 2 1.2.1
processing
c) The function declaration should contain ampersand (& in
its type declaration)
d) The function declaration should contain $
Interaction Diagram is a combined term for
a. Sequence Diagram + Collaboration Diagram
5. b. Activity Diagram + State Chart Diagram 1 2 1.2.1
c. Deployment Diagram + Collaboration Diagram
d. Component Diagram + Deployment Diagram
Which anmong the following is correct for multiple
inheritance?
a) class student {public: int marks;}s; class stream {int total;};
6. class topper:public student, public stream{ }:
b) class student {int marks;}; class stream{ }; class topper: 3 1.2.1
public student{}:
c)class student{int marks;};class stream:public student{ }:
d) class student{}; class stream{; class topperf}:
7. Which feature of OOP indicates code reusability? T32|12.1
a. Abstraction
b. Polymorphism
c. Encapsulation
d. Inheritance
Which is uscd to create a pure virtual function?
a) $
8. b) =0 1 3 2 1.2.1
c) &
d) !
What is an inline function?
a) Afunction that is expanded at each call during execution
9. b) A function that is called during compile time 1 3 1.2.1
c) A function that is not checked for syntax errors
d) A function that is not checked for semantic analysis
Activity diagram, use case diagram, collaboration diagramn
and sequence diagram are considered as types of
10. a) non-behavioral diagrams
1 3 2 1.2.1
b)nonstructural diagrams
c) structural diagrams
d) behavioral diagrams
PART B (4 X4 =16)
ANSWER ANYFOUR OUT OF SIX QUESTIONS
Q.No. Questions Marks CO BL PI
Why does copy constructor accept the objects by reference 4 2 4 2.3.1
and not by value?
1Z. Write short noteson function overloading. 4 2 2.3.4
13. Illustrate about types of message in sequence diagram 4 2 3.1.1
14.
Differentiate between public, private and protected
4 3 4 3.2.1
inheritance using suitable examples.
18. What is an abstract class? Give example. 4 4 4.3.2
16. Outline the basic components of state chart diagram. 4 2.3.2
J620
RINAPURANT SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
SRM TW
RAMAPURAM CAMPUS
FACULTY OF ENGINEERING AND TECHNOLOGY
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
CONTINUOUS LEARNING ASSESSMENT-III(2022-23) -EVEN SEM
Code/Neme 21CSCOTObject Grienteá Desigu and Set 0DD
Programning
Veasem/Branch |IA/CSE and Specialisation Date5-5-23
Net. Marks 50Marks Duration 90 Mins
PART A(10 X l= 10)
ANSWERALL THE QUESTIONS
Q.N MCQ Questions Marks CO BL PI
5.1.1
12.
Whai is a Pckage Disgran1? liustrate t wih e s able 4 5.3.!
examplc.
4 2.3.1
13. llustrate catch all staterments with a suitable examplc.
14. What are all functions supported by vector and define 4 5 2 2.3.1
them?
15. How to insert and delete clements from priority queue? 4 5 4 3.1.1
Write a suitable exan1plc program.
16. What are scquence Containers in C++ STL and explain 4 2.3.1
with suitable examplc?
i7 OR
B) D1scuss in detai! on Conporent Diagram an
depBovient with . suitab!e exANgie. 5.3.1
18. OR
B) What are the types of containers and explain the
conceptof stack and queuc with suitable example 12 5 2s.1
B.Tech/ M.Tech (niegrated) DEGREE
EXAMINATION, MAY 2023
Second & Third Semester
21CSCI01T-OBJECT
(For the candidates
ORIENTELD DESIGN AND PROGRAMMING
Note:
odnited from the academic year 2022-2023 onwards)
(i) Part - A shouid be answered in OMR shect within first 40
to hal invigilator at the end of 40h minute. minutes and OMR sheet should be handed over
Part -B and Part-C should be answered in answer booklet.
Tine: 3 Hours
Max. Marks: 75
4. Which of the following access specifier allows the user to inherit the private 1 I1 2
members of a class?
(A) Public (B) Protected
(C) Default (D) Private
1
6. Which of the following permits function overloading on C++?
(A) Type of arguments (B) Number of arguments
(C) Type and number of arguments (D) Number of objects
1 2 1
7. Which of the following C++ operator(s) can be overloaded?
(A) Size operator (size of) (B) Conditional operator (?:)
(C) Arithmetic operator (+,-,*) (D) Class Member Access Operator
() 29MF2&3-21CSCi01T
Page I of 4
2 2 3
8. Sequence and collaboration diagrams are
(A) UML interection diagrams (B) UML static diagrams
(C) UML structural diagrams (D) UML implementation diagrams
I 2 3 2
9. ldentify what happens when a attempt is made to instantiate an object of an
abstract class.
(A) Success message (B) Warning message
(C) Compilation error (D) Objccts gets created
10. In multilevel iaheritance one class inherits 1 2 3 1
(A) Only from one class (B) More than one class
(C) Atleast one class (D) Asmany classes as required
11. The double line filied circle with pointing arrow is I I 3 3
(A) Start state (B) Final state
(C) Transition state (D) Composite state
12. An inline function is expanded during 1 1 3 2
(A) Compile time (B) Run time
(C) Never expanded (D) End of program
13. What are tempiates in C++? 1 2 4 2
(A) A feature that allows programmer (B) A feature that allows
towrite generic programs programmer to write specific
codes fora problem
(C) Afeature that aiiows programner (D) Afeature that does not add any
to make program modular power to the language
14. What is an exception in Ct program? I 2 4 2
(A) A problem that arises during the (B) A problem that arises during
execution of a program compilation
(C) Syntax error (D) Semantic error
15. is used to visualize the topology of the physical components of a 1 4 3
system.
(A) Class diagram (B) Sequence diagram
(C) Deployment diagram (D) Package diagram
16. The block identifies a block of code for which a particular exception 1 1 4 2
wiil be activated.
(A) try (B) throw
(C) catch (D) finally
17. How many components Standard Template Library (STL) has?
(A) I (B) 2
(C) 3 (D) 4
18. What are iterators?
2 5 2
(A) Iterators are used to iterate over (B)
Iterators are containers
functions
(C) Iterators are used to iterate over (D)
pointer
Iterators are like pointers that
points to an element inside the
Page 2 of4 container
z9MF2&3-21CSC101T
19, Which function is used to access the first element of an array class?
(A) front () (B) start()
(C) first () (D) back()
20. is aproccdure that is used to process the data containcd in containers. 1 2 5 2
(A) Algorithm (B) Iteralor
(C) Pointer (D) Object
PART - B(5 x 8 = 40 Marks) . Marks BL CO P0
(OR)
b. Draw the UML use case diagram for the library
management system. The
system wii! have two users Librarian and student
8 4 3
(OR)
b. Draw the activity diagram with
The passenger should be abie toswim lanes for railway reservation system.
book ticket in online railway
8 4 3 3
b. (OR)
Develop the components and deployment diagram for
online banking system. 8 4 4 3
d. Explain in detail about the
Libraries (STL). components that make up the Standard Template 8 3 5 4
(OR)
Page 3of 4
29MF2&3-21CSCi01T
of STL. stack with the STL. 4 s 4
b. Write a CPP program to demonsrate the working
functions.
Marke BL. CO PO
PART-C(1x15- 15 Marks)
Answer ANY ONE Question
15 4 2 2
3. Create a class named "Trianglc' with two private data members, base have and
height and one function to calculate the area of triangle. The class should
the folloving constructors:
(i) Having no parameter - values of both base and height are assigncd
zero
15 3 3
27. Write a CPP program for the below mentioned hybrid inheritance scenario:
Create a class 'student' to get the student details. Inherit a class named
'Marks' from 'Student' class to calculate the marks of students. Next, create a
class 'sports' to get the sports marks. Finaliy, create a class Result' inherited
from 'Marks' and 'sports' to calculate the overall result and average (overall
results will be from marks and sports marks).
Page 4 of 4
29MF2&3-21 CSC101T