Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
11 views
2 pages
May 23
mamths
Uploaded by
Aswath Aswath
AI-enhanced title
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
Download now
Download
Save may 23 For Later
Download
Save
Save may 23 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
11 views
2 pages
May 23
mamths
Uploaded by
Aswath Aswath
AI-enhanced title
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
Download now
Download
Save may 23 For Later
Carousel Previous
Carousel Next
Download
Save
Save may 23 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 2
Search
Fullscreen
». Write « CPP program to demonstrate the working of STL stack with the STL functions. PART ~C (1x 15=15 Marks) ‘Answer ANY ONE Question 26. Create a class named ‘Triangle’ with two private data members, hase and height and one function to calculate the area of triangle. The class should have the following constructors: () Having no parameter — values of both base and height are assigned (Having evo parameters — to assign values to base and height (i) Having one parameter ~ sssign value through parameter for base and assign height iv) Having a copy constructor to copy values of one objet to another (Create objects forthe classes and calculate the area of triangle and print the 27. Write a CPP program forthe below mentioned hybrid inheritance scenario: Create @ class ‘student’ to get the student details. Inberit a class named Marks" from ‘Sraden cass to calculate the marks of stadents. Next, create a class ‘sports’ to get the sports marks. Finally, 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), Present [eno B.Tech M-Tech (Integrated) DEGREE EXAMINATION, MAY 2023, ‘Second & Third Semester 21CSC10)T - OBJECT ORIENTED DESIGN AND PROGRAMMING (Por the candidates ccmited from the academic year 2022-2023 onwards) Note: ()Part= stout be answered in OM set within Sat 40 minutes an OM shertshauld Ye Randel over ‘ofall viata a the ond of 40 inte. (G)Part-DandPare=C shuld be anoere ia answer booklet ‘Time: 3 Hours Max. Marks: 75 PART— A @01=20Mari3) ee “Answer ALL Questions Which feature of OOP indicates code reusability? ee (A) Absizaction| (B) Encapsulation (©) Inheritance ©) Polymorphism Which ofthe following statement iste forthe command: aes int loa) (A) fie fametion taking an argument (B) fis a fiction taking an ‘of type int and retuning a argument of type float and foating-poin number retuming an ineger (© fisatimetion oftype fost ——_(D) isa faction of ype int . Kdentfy the comet way to declare @ constant data type using preprocessor 1 7 1 2 dicecive in CH? (A) eefine iat a= 100 @) MaeGinea~100 (©) tein ita 100 (D) Aaefine a 100 Which ofthe following access specifier allows the user t inherit the private 11! 2 members ofa class? (A) Public (B) Protected (©) Defuut () Private . What happens its user forges to define a constructor inside a clas? hoa (A) Brnor occurs (B) Segmentation fait (©) Objects arenot created properly (D) Compiler provides. defmlt : constructor to avoid. falls 1 Which ofthe ftlowing peents faction overloading on C++? aes (A) Type of arguments (B) Number of ergumens (©) ‘Type and mumberofxgumeats (D) Number oF objects, Which ofthe Zliowing C++ operatn(s) can be averioaded? ee (A) Size operator (size of) {B) Conditional operator (2) (©) Aritmetic operator (+-.e/), __(D) Class Member Access Operator °Sequence and collaboration diagrams are (A) UML interaction diagrams (B) UML static diagrams (© UME strcturl diggrams (D) UML implementation diagrams Identify what happens when a attempt is made to instantiate an object of an abstract class. (A). Success message (B) Waring message (©) Compilation error (D) Objects gets created ‘In mutilevel inheritance one class inherits (A) Only from one class (B) More than one class (©) Aleast one class (D) Asmany classes as required 11. The double line filled cizcle with pointing arrow is _ (A) Sart state (B) Final stare (©) Transition state (D) Composite state 12. An inline function i expanded during (A) Compile time ®B) Runtime (©) Never expanded (D) End of program 13, What are templates in C42 (A) A feature that allows programmer (B) A feature that allows to write generic programs programmer 1 write specific ‘codes fora problem (©) A feature that allows programmer (D) A feanute that does not add any ‘tomake program modular power to the language 14, What is an exception in C++ program? (A) A problem that arses during the (B) A problem that arises during ‘execution of a program. compilation (©) Synimx error (D) Semantic exor 1s. is used 10 visualize the topology of the physical components of stem, (A) Class diagram (B) Sequence diagram (C) Deployment diggram (D) Package diagram 16. The __ block identifies a block of code for which a particular exception wil Be wotvated oy (B) throw (©) cateh (D) Gnally 17. How many components Standard Template Library (STL) has? @ @ 2 3 @ 4 18, What are iterators? (A) Mterators are used to iterate over (B) Tterators are containers fanetions (©) lterators are used to iterate over (D) ltertors are like pointers that pointer pints to an clement inside the 19. 20 2ha 2a 23.0, dha 28.4, esate Which function is used to access the frst clement ofan array class? , (A) feont() B) start) (©) fist (D) beck) is a procedure that is used to process the data contained in containers. @® Algorithm (B) erator (©) Pointer (D) Object PART -B(Sx “Answer ALL Questions Write a CPP program to calculate and display the area of a rectangle. Createa class with two private data members length and breadth and three functions First function to get the values of length and breadth, second function to calculate the area and third function to display the area. Length and bread should be entered by the ser. (or) Draw the UML use case diagram for the library management system. The * system will ave two users Librarian and student with the following fnetions. “Librarian functions: Add books, Add student, Add publication, Issue book, Return book, Apply penalty, View report ‘Student functions: Search book, Issue book, Return book, Penalty report ‘Change password. Write a CPP program to add and subtract two complex numbers using * ‘operator overloading concept. (OR) Create the sequence and collaboration diagram for withdrawal senso inthe & Dank ATM system. The system stars the process by employing a standard procedure for validating the card and account holder. Write a CPP program to differentiate early binding and late binding with the * help of vimwal functions. (or) 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 itcude fork, joint, decision ete. Write a CPP program to find the largest of two numbers using function ¢ templates. (oR) Develop the components and deployment diagram for online banking system. * Explain in detail about the components that make up the Standard Template * Libraries (STL), (on) 10 Marks) cae
You might also like
K Scheme OOP Unit Test-1 Question Bank
PDF
No ratings yet
K Scheme OOP Unit Test-1 Question Bank
12 pages
Question papers C++
PDF
No ratings yet
Question papers C++
8 pages
22393 (1)
PDF
No ratings yet
22393 (1)
4 pages
Oop Practice Questions
PDF
No ratings yet
Oop Practice Questions
14 pages
cpp lab manual
PDF
No ratings yet
cpp lab manual
2 pages
OOP in C++
PDF
No ratings yet
OOP in C++
25 pages
CE - 144 OOPC++ Practical List
PDF
No ratings yet
CE - 144 OOPC++ Practical List
13 pages
21CSC101T May 2023
PDF
No ratings yet
21CSC101T May 2023
4 pages
10 Question Bank
PDF
No ratings yet
10 Question Bank
25 pages
Dec 23
PDF
No ratings yet
Dec 23
4 pages
bca-2-sem-programming-in-cpp-winter-2018
PDF
No ratings yet
bca-2-sem-programming-in-cpp-winter-2018
2 pages
OODP 2024 July Paper
PDF
No ratings yet
OODP 2024 July Paper
2 pages
OOP_QP
PDF
No ratings yet
OOP_QP
24 pages
OOP Solutions Markwise
PDF
No ratings yet
OOP Solutions Markwise
5 pages
MT 1 Rubricfa 2011
PDF
No ratings yet
MT 1 Rubricfa 2011
22 pages
Problem Set - OOP
PDF
No ratings yet
Problem Set - OOP
4 pages
Ilovepdf Merged
PDF
No ratings yet
Ilovepdf Merged
12 pages
OODS University Paper 2024 SRM
PDF
No ratings yet
OODS University Paper 2024 SRM
4 pages
Modified CPP
PDF
No ratings yet
Modified CPP
40 pages
dsa 2-14
PDF
No ratings yet
dsa 2-14
3 pages
CT-2 QP - Set A - Answer
PDF
No ratings yet
CT-2 QP - Set A - Answer
10 pages
18csc202j Oodp Ct1 Question-Old
PDF
No ratings yet
18csc202j Oodp Ct1 Question-Old
8 pages
UNIT I Question Bank
PDF
No ratings yet
UNIT I Question Bank
5 pages
Computer Science 1B 2021 Exam Memo - CSC01B1-2021-EXAM-MEMO
PDF
No ratings yet
Computer Science 1B 2021 Exam Memo - CSC01B1-2021-EXAM-MEMO
7 pages
Ai 2000 PDF
PDF
No ratings yet
Ai 2000 PDF
13 pages
c++ pro QP
PDF
No ratings yet
c++ pro QP
8 pages
Object Oriented Programming in C++
PDF
No ratings yet
Object Oriented Programming in C++
18 pages
2018-june
PDF
No ratings yet
2018-june
8 pages
Computer Science: 2024 III 09 0930 Seat No. Time: 3 Hours Subject Code H4 7 0 5
PDF
No ratings yet
Computer Science: 2024 III 09 0930 Seat No. Time: 3 Hours Subject Code H4 7 0 5
15 pages
Programming in C++ Msuniv Question
PDF
No ratings yet
Programming in C++ Msuniv Question
6 pages
B.B.A (C.a) 2013 Pattern (1) 2 - Organized
PDF
No ratings yet
B.B.A (C.a) 2013 Pattern (1) 2 - Organized
5 pages
Examination Papers, 2000: (All India)
PDF
No ratings yet
Examination Papers, 2000: (All India)
13 pages
OOPS PYQ
PDF
No ratings yet
OOPS PYQ
11 pages
SCS 202 24..25
PDF
No ratings yet
SCS 202 24..25
3 pages
OODP1
PDF
No ratings yet
OODP1
5 pages
Oct 24 Bba (CA) Cpp Solution
PDF
No ratings yet
Oct 24 Bba (CA) Cpp Solution
11 pages
OODP question bank for unit 1 and unit 2
PDF
No ratings yet
OODP question bank for unit 1 and unit 2
6 pages
Object Oriented Programming
PDF
No ratings yet
Object Oriented Programming
3 pages
Object Oriented Programming Assignment 5
PDF
No ratings yet
Object Oriented Programming Assignment 5
6 pages
Dot NET Exam Analysis
PDF
No ratings yet
Dot NET Exam Analysis
6 pages
OOP 2017july
PDF
No ratings yet
OOP 2017july
4 pages
Exam 2
PDF
No ratings yet
Exam 2
6 pages
2 Sem CE144-OOPC++ Practical List-19-20
PDF
No ratings yet
2 Sem CE144-OOPC++ Practical List-19-20
15 pages
Sample Paper
PDF
No ratings yet
Sample Paper
11 pages
cse_ass2024
PDF
No ratings yet
cse_ass2024
4 pages
21CSC101T Dec 2022
PDF
No ratings yet
21CSC101T Dec 2022
6 pages
OOP Theory Mid Part 1 Objective Sol
PDF
No ratings yet
OOP Theory Mid Part 1 Objective Sol
2 pages
Be Computer Engineering Semester 3 2022 November Object Oriented Programming Oop Pattern 2019
PDF
No ratings yet
Be Computer Engineering Semester 3 2022 November Object Oriented Programming Oop Pattern 2019
3 pages
OODP All QP Sem 2
PDF
No ratings yet
OODP All QP Sem 2
10 pages
Sample Question Paper: Employee Employee Name, Employee ID Getdata, Putdata
PDF
No ratings yet
Sample Question Paper: Employee Employee Name, Employee ID Getdata, Putdata
7 pages
Oop With.c++ - 5-12-18
PDF
No ratings yet
Oop With.c++ - 5-12-18
3 pages
Object Oriented Programming Concept by Using C++ (CSEN 3208)
PDF
No ratings yet
Object Oriented Programming Concept by Using C++ (CSEN 3208)
3 pages
Ensf 480 Midterm 2018 Solutions
PDF
No ratings yet
Ensf 480 Midterm 2018 Solutions
6 pages
Question Paper 2021 Introduction To Object Oriented Programming
PDF
No ratings yet
Question Paper 2021 Introduction To Object Oriented Programming
4 pages
2016 - 1st Internal Paper
PDF
No ratings yet
2016 - 1st Internal Paper
2 pages
Question Bank For Class Test 1 2024 - OOP
PDF
No ratings yet
Question Bank For Class Test 1 2024 - OOP
1 page
Lab Exam Question Bank OfC++ PRG
PDF
No ratings yet
Lab Exam Question Bank OfC++ PRG
3 pages