0% found this document useful (0 votes)
18 views4 pages

Dec 23

mmaths

Uploaded by

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

Dec 23

mmaths

Uploaded by

Aswath Aswath
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 4
B.Tech/ M.Tech (Integrated) DEGREE EXAMINATION, DECEMBER 2023 Second Semester 21CSC101T - OBJECT ORIENTED DESIGN AND PROGRAMMING (For the candidates admitted from the academic year 2022-2023 onwards) * Note: @ 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 40" minute. (i) Part- Band Part- C should be answered in answer booklet. Time: 3 Hours Max. Marks: 75 PART — A (20 x 1 = 20Marks) Marks BL CO PO ‘Answer ALL Questions 1. Which of the following is not an OOPS concept? po2 1 2 (A) Encapsulation (B) Polymorphism (C) Exception (D) Abstraction 2. Who developed object-oriented programming? 2 1 2 (A) Adele Goldberg (B) Dennis Ritchie (C) Alan Kay (D) Andrea Ferro 3. diagram in UML shows a complete model of a system at a specific 1! 3 ' 3 ime, (A) Object (B) Class (C) Sequence (D) Collaboration 4, Which features of OOPS derives the class from another class? roz.a (A) Inheritance (B) Data hiding (C) Encapsulation (D) Polymorphism 5, How many time a constructor is called in the life-time of an object? toa 22 (A) Twice (B) Thrice (C) Only once (D) Depends on the way of creation of object 6. Sequence diagram is___oriented. .o22 2 (A) Class (®) Time (© Activity (D) Relationship 7. When a destructor is called? poz 22 (A) Afier the end of object life (B) Anytime in between objects lifespan (©) Atend of whole program (D) Just before the end of the object life 8. How many parameters does a default constructor require? 102022 (ay @®) 2 ©) 0 @) 3 Page Lof 4 ospF22icscioiT Behaviour diagram does not include (A) Use case diagrams (B) State diagrams (C) Activity diagrams (D) Component diagrams 10. Which members cannot be accessed in derived class in multiple inheritance? (A) Private members of base (B) Public members of base (©) Protected members of base (D) Constructor of base uL. keyword is used before a function in a base class which is to be overridden in derived class? (A) Void (B) Static (©) Virtual (D) Friend 12. In anactivity diagram, transitions belong to (A) Trigger oriented transitions (B) Self-transitions (C) Internal transitions (D) Completion transitions 13. Function template can accept (A) Any type of parameters (B) Only one parameter (C) Only parameters of the basic (D) Only parameters of the derived type type 14. Which among the following are not the valid notations for package and component diagrams? (A) Notes (B) Box (C) Nodes (D) Extension mechanism 15. Which of the following is used for generic programming? (A) Viral functions (B) Modules (C) Templates (D) Abstract class 16. ___an ability to automatically resize when appending elements. (A) Amay (B) Vector (C) Dynamic array (D) Container 17. State the return type of find method. (A) Iterator (B) Integer (C) Boolean (D) Float 18. How many instance are allowed by map container, while inserting an element? (A) 2 ®) 1 © 3 () Multiple 19. Which container can have the same keys? (A) Map (8) Multimap (©) Unordered map (D) Set 20. What are the containers? (A) Containers store objects and data (B) Containers stores all__ the algorithms (C) Containers contain overloaded (D) Containers contain set of iterators functions Page 2 of4 oepr2icscint 21a. ii, bi. ii, 22.a. b. 23a. bi. ii, 24. a, b. 25.a, Page3 of PART ~B (5 x8 = 40 Marks) Answer ALL Questions List and discuss the characteristics of object oriented programming language Discuss the different types of access specifier with suitable examples. (OR) .. Distinguish between aggregation and composition with examples. Create a class named triangle with two data members - ‘base’ and “height” and a member function ‘area’ to calculate the area of the triangle. Elaborate the sequence diagrams on how a user gets a passport from the passport office. (OR) A state land registration authority is keeping the track of the native addresses and total area of the flat people across the state. Since total population is high and the area to be monitored is huge, the government decided to develop software as per the details. House name, number, city, state, width, height, umber of rooms are the data members and print the details of the house using constructor concepts such as default constructor and parameterized constructor. Illustrate a C++ program to create a multilevel inheritance of person, employee and teacher classes by explaining differences between public, private and protected inheritances with public, private and protected data. (OR) Demonstrate function overriding with an example. Construct activity diagram for the given scenario using fork and join operation with component explanation. (1) A customer can access menus of restaurant (2) To be able to login into the account (3) Select items to order (4) Make payment for order Write a program that allows the user to add the elements in two vectors. Swap the vector elements and display using STL vector. (OR) Write a C++ program containing a possible exception using a try block to throw it and a catch block to handle it properly. Write a program for sequence container‘list (array of integer data type) and implement the following methods. Create user defined function print list ( ) and display output. (@ push_front() (ii) insert() (iii) sort()__ (iv) pop_back () (OR) Marks 4 BL co os F2-21CSC10T b. Explain about for_each (), transform (), merge (), search () algorithms with § 3 5 2 suitable examples. PART ~ C (1 x 15 = 15 Marks) Maris BL CO PO Answer ANY ONE Question 26. A university conducts examinations and the results are announced. Preparea § 3 4 3 report for the following: (i) Print the marks in the register number order, semester wise for each department (ii) Print the arrear list semester wise (ii) Prepare a rank list for each department Identity the problem statement and design the component for each sequence. Draw UML component diagrams, and explain ali notations in component diagram. 27. Ram and Shiva are working as accountants in a bank. They need to know al 1 3 4 3 the arithmetic operations to verify the accounts. Since they are beginner in mathematics, they found difficulty in doing such arithmetic operations. Help them to check accounts by applying arithmetic operations including add, substract, multiply and divide using class template. sxeee Page 4 of OsDFL-2ICSCIONT

You might also like