0% found this document useful (0 votes)
19 views16 pages

Oopd (QP) 4

Uploaded by

haranhari18905
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)
19 views16 pages

Oopd (QP) 4

Uploaded by

haranhari18905
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/ 16
5633030 B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER 2014. Third Semester Computer Science and Engineering OBJECT ORIENTED PROGRAMMING AND DESIGN Time : Three hours Maximum : 75 marks PART A — (10 x 2 = 20 marks) Answer ALL questions. All questions carry equal marks. 1. State any ‘four advantages of object oriental programming. 2. Write the properties-of friend function. 3 What is destructor? 4. What is function overloading? Give example. 5. Explain how to create dynamic objects. 6. Write a: small program - explaining Virtual functions: . 4 (6x11 =55 marks) questions, ONE from each Unit, All questions carry equal marks. UNIT] the major principles of object criental illustrations and neat Or ‘the decision making statements of Cr+. UNITIL stor overloading with example ‘Explain Virtual function with a UNITIV Explain the file pointers and file m Or Explain Function Template with good ex program. UNITY, Explain the interaction and state chart: ‘UML. Or Explain the concept of Interaction M B.Tech. DEGREE EXAMINATION, Third Semester Computer Science and Engineering OBJECT ORIENTED PROGRAMMING AND DESIGN 2 (2013-2014 onwards) Time : Three hours Maximum : 75 marks “u PART A — (10 x 2 = 20 marks) Answer ALL questions. All questions carry equal marks. il, Outline the disadvantages of procedural programming. : Explain Lvalue and Rvalues. 3 State the usage of Constructor and Destructor. Explain abstract class. a, Write the function for malloc( ) and free( \ Ce arc Write sample C++ co to display the length of string. i of adapter pattern design. — (6 x 11=55 marks), L questions, ONE from each unit. estions carry equal marks. UNITI , various control structures in C++. Or ous building blocks for object oriented language. UNIT IT operator overloading function nple. Design a program to string handling meth« Develop a program to integers into binary file. Or Discuss exception handling in ( UNIT V_ Construct the UML usecase amount in ATM banking. Or | Design Sequence and issue and return of Third Semester Computer Science and Engineering OBJECT ORIENTED PROGRAMMING AND DESIGN ~ (2013 —.14 Onwards) Time: Three hours Maximum : 75 marks PART A — (10 x 2=20 marks) Answer ALL questions. All questions carry equal marks. 1. What are the advantages of OOP? 2. What is the use of the word friend keyword in C++? 3. Write some special characteristics of constructor. List out the operators that cannot be overloaded. List the two types of polymorphism? Give an example'for each. How are virtual functions declared in C++? _ What are the three keywords used for count B gone mechanism? ns, ONE from each Unit. ‘carry equal marks, “UNITT \ ; jented » features of object orient a Describe how each of these is how td overload a function with an ple program in C++. " UNITIL n the different types of Constructors that ble in C++. Or e significance of inheritance and explain types of inheritance with a xxample for each type. Explain in detail mechanism and write a illustrate the divide by zero: Or Explain the file handling te UNITV Describe in detail: Object ori design methodology. Or Explain how to use the a interaction diagrams. EXAMINATION, Third Semester Computer Science and Engineering OBJECT ORIENTED PROGRAMMING AND DESIGN (2013-14 onwards) Time : Three hours Maximum : 75 marks PART A — (10 x 2 = 20 marks) Answer ALL questions. All questions carry equal marks. ; : 1. Compare structured programming and object oriented programming. 2. Mention the use of array of objects. 8. Define copy constructors. What is meant by virtual class? How can we access private variables pointers? need dynamic objects? m to fi y of pointers: write 4 crt progr) numbers using aT® Or that implements area of 4 program d eee using abstract classes. UNIT IV write a Ct rectangle an illustrates class Write @ C++ program that templates. Or pxplain exception handling in detail. UNIT V Explain various UML diagrams in detail. Or Describe various methodology used for OOAD. — operation with example. plain the class diagram for a simple cation. Or raction diagrams with an example. 5633030 B.Tech. DEGREE EXAMINATION, Third Semester Computer Science and Enginee OBJECT ORIENTED PROGRAMMING AND I Time : Three hours ; Maximum PART A— (10 x 2= 20 marks) Answer ALL questions. All questions carry equal marks, , 1. Write few concepts of object — programming. What is function overloading? 3. What is meant by copy const1 4. Describe the syntax of do we use such an i “(6% 11=55 marks) ‘ONE question from each Unit. - UNIT | to evaluate the following function ‘Teacher Subject Publication UNIT IIT Write a program to numbers and display ‘of member function. Write a program tod access member Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER 2016. Third Semester Z Computer Science and Engineering OBJECT ORIENTED PROGRAMMING AND DESIGN (2013 — 2014 onwards) Time : Three hours Maximum : 75 marks PART A — (10 x 2 = 20 marks) Answer ALL questions. All questions carry equal marks. 1. What is data hiding? 2. What is a friend function? 8. Define virtual class. 4. What is an abstract class? : 2 What is meant by an array? Give an example. State the use of new and delete cae i Discuss about pointer to. classes. Or ss diagram. iG! Explain about declaring and jects in detail. (6 x 11=55 marks) chee ons, choosing ONE from each Unit. we estions carry equal marks. 17. Discuss command line argume Or 18. Explain about Exception UNIT V 19. Discuss about interaction Or UNITII 20. Explain about state chart dynamic initialization using Or & detailed note on Super-sub class ‘and a-part-of relationship? (6) 2e the UML class diagram with neat : © UNITV t and explain the four testing strategies (11) Or ‘you mean by quality assurance test? Give ssity and explain any two testing ay. efly explain the purpose of View layer Define OODesign and why do users find OOU! easier to use. PART B— (6x 11 = 55 marks) “Answer ALL questions, ONE from each Unit. ‘All questions carry equal marks UNITI © the help of @ program explain thi @ ‘Wihmetc operations ing pointers, a 2 a class Player with lata members layerid, playername, playergame and mom OBJECT ORIENTED functions are getplayer0, Searchplayer). any Gisplayplayer). Use file to store N employers et tion and perform those operation. ‘Time : Three hours UNITV PART A— (10 x2 Derive the use case model for student course "registration system in a University with proper ‘Alqustciee interaction and activity diagram which include the fine Encasanist following tasks Publication of Courses offered, a Deine eae a ‘sti enrollment for courses, Attendance - State the advantages of inline sConduct of Exams and marks 3. What is an abstract class? and Result publication. What ‘an er Or parameterized constructors? in in detail about patterns with an . @ 6. How is a string object ty and state chart diagrams are 7. What is Uncaught @ of it? What are the / ONE question from cach unit. ‘carry equal marks, UNIT — basic concepts of Object oriented ie @ to access the class nexample, (4) are pointers used bers? Explain with a Or are manipulators? Explain in detail it the various manipulators used for 1/0 erations. @ ain in detail about friend function in UNIT IE Vector to hold an array of integers n the following operations using dynamic allocation of array based argument 9 vectors using constructor 5633030 Multiply all elements number X and display the r Or write a C++ program to find the gD shapes such as square, re circle and ellipse using function over UNIT II (@ Explain in detail about the various casting in C++. (b) Write a C++ program for calculating th of rectangle and circle using run polymorphism. Or Write a program in C++ to read two and perform the following st manipulation function. a () Find the long string Gi) Compare the two strings (iii) Concatenate them. Explain in detail about are they created? 4 3

You might also like