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)
55 views
3 pages
CS 404
Uploaded by
BINAYAK DATTA ROY
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
Save
Save CS 404 For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
55 views
3 pages
CS 404
Uploaded by
BINAYAK DATTA ROY
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
Carousel Previous
Carousel Next
Download
Save
Save CS 404 For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save CS 404 For Later
You are on page 1
/ 3
Search
Fullscreen
B.Tech / Even Q.No.cs 404/111 (6-17)/Rep, 2016-17 OBJECT ORIENTED PROGRAMMING CS 404 Full Marks : 70 Time : 3 hours The figures in the margin indicate full marks. Answer Q. No. 1 and any four from the rest. Your answers should be brief and to the point 1. @ Justify the following statements with examples (as required) in terms of object oriented programming in (Cia (@) Object-oriented programming paradigm has more control over data compared to procedure-oriented para- digm. (6) Friend functions can act as bridges among classes. (c) Bit-wise copying of objects may often be dan- gerous. (@ Input output statements in C++ are more safe, compact and user-friendly compared to C. (e) Initializing reference and constants members is tricky in C++ classes. (wi) Illustrate how the C++ compiler modifies the basic program code by decorating function names, inserting G/33-130 [ Turn Over |a) additional arguments or translating statements in follow- ing cases: operator overloading and member method argument list (6x2)+4 Define a class Date with day, month and year as data members (atleast) and methods readDate(), displayDate(), diffOfDates() as member methods. Include overloaded con- structors with suitable default arguments (Set the default date to be 1* Jan 2000). Overload the following operators <<, >>, ++ (post increment), != in a suitable way. 384+3+8 (@) Justify the statement “Templates in C++ enables a programmer to write generic classes and functions”. (6) Define a C++ template class to implement a queue abstract data type (ADT) (use dynamic allocation). Add suitable constructors (with default arguments) and destruc- tor and relevant methods. Illustrate its use by instantiat- ing a queue with characters and a queue with float ele- ments. (c) Write suitable codes fe implement such that the fol- lowing statements are supported. queue q,p; int b= x+c’,// insert the character ‘c’ into queue object x char a=-x;, // delete one character from the queue object x p=q; 2+6+6 (@) What is inheritance ? State the different types of in- heritance with examples. Gisa-130 - [ Continued ] (5.89) (0) State the features of static data, static methods and static objects in terms of their usage, initialization, access rules etc. Illustrate with example. (¢) Explain when and how virtual base class is used. * 5+5+4 5. (a) What is late binding, explain with an example ? Explain how C++ compiler implements late binding late binding. : (6) Explain the use of inline function and enumerated data type in C++ (c) Explain the use of virtualbase class. (4+4)+2+4 6. (a) Write the C++ code to dynamically allocate a 3-d array with ‘c’ columns, ‘r’ rows and ‘p’ planes using new operator. Show how to deallocate the same using delete operator. (0) Write a C++ method for a complex class to support the following (assume suitable member data): complex cl,c2,c3; cin>>c1>>c2>>c8; (c) Illustrate the use of friend function in operator over- loading. (@) Write a C++ class demoStatic which has a method to count and display the number of objects created for the class at a particular point of time. 44+3+3+4 7. Write notes (any two): ond G/33-130 [ Turn Over ]Ce) (a) Templates in C++ (0) Exception handling in C++ (©) Polymorphism in C++ (@ Object-oriented programming features and advan- tages. G/33-130
You might also like
Past Question CPP
PDF
No ratings yet
Past Question CPP
25 pages
C++ Previous Question Papers
PDF
No ratings yet
C++ Previous Question Papers
5 pages
Oops Pyq
PDF
No ratings yet
Oops Pyq
11 pages
Oops - Eee, Ece, Cse & It
PDF
No ratings yet
Oops - Eee, Ece, Cse & It
2 pages
Object Oriented Programming Using C++
PDF
No ratings yet
Object Oriented Programming Using C++
4 pages
OOPS2022
PDF
No ratings yet
OOPS2022
2 pages
Solved Object Oriented Programming (2019 Pattern)
PDF
No ratings yet
Solved Object Oriented Programming (2019 Pattern)
10 pages
Pyq Oops Ru
PDF
No ratings yet
Pyq Oops Ru
12 pages
CS6456 OOPs
PDF
No ratings yet
CS6456 OOPs
2 pages
Be - Electronics and Telecommunication Engineering - Semester 4 - 2022 - May - Object Oriented Programming Oop Pattern 2019
PDF
No ratings yet
Be - Electronics and Telecommunication Engineering - Semester 4 - 2022 - May - Object Oriented Programming Oop Pattern 2019
2 pages
Oops Pyqp
PDF
No ratings yet
Oops Pyqp
8 pages
CEGP013091: 49.248.216.237 18/12/2024 09:34:23 Static-237
PDF
No ratings yet
CEGP013091: 49.248.216.237 18/12/2024 09:34:23 Static-237
2 pages
Oops With C++ PYQ
PDF
No ratings yet
Oops With C++ PYQ
5 pages
Object Oriented Programming Using C++
PDF
No ratings yet
Object Oriented Programming Using C++
2 pages
2017 July
PDF
No ratings yet
2017 July
5 pages
Oop 4
PDF
No ratings yet
Oop 4
2 pages
Be Electronics and Telecommunication Engineering Semester 4 2023 November Object Oriented Programming Oop Pattern 2019
PDF
No ratings yet
Be Electronics and Telecommunication Engineering Semester 4 2023 November Object Oriented Programming Oop Pattern 2019
2 pages
Question Papers C++
PDF
No ratings yet
Question Papers C++
8 pages
2023 November Oop
PDF
No ratings yet
2023 November Oop
2 pages
WWW Manaresults Co in
PDF
No ratings yet
WWW Manaresults Co in
4 pages
Be - Artificial Intelligence and Data Science - Semester 3 - 2023 - November - Object Oriented Programming Oop Pattern 2019
PDF
No ratings yet
Be - Artificial Intelligence and Data Science - Semester 3 - 2023 - November - Object Oriented Programming Oop Pattern 2019
2 pages
May Jun 2022
PDF
No ratings yet
May Jun 2022
2 pages
Oops
PDF
No ratings yet
Oops
2 pages
OOP2023 OOP2024 Merged
PDF
No ratings yet
OOP2023 OOP2024 Merged
2 pages
Nov Dec 2023
PDF
No ratings yet
Nov Dec 2023
2 pages
Be Computer Engineering Semester 3 2022 May Object Oriented Programming Oop Pattern 2019
PDF
No ratings yet
Be Computer Engineering Semester 3 2022 May Object Oriented Programming Oop Pattern 2019
2 pages
Cse Ass2024
PDF
No ratings yet
Cse Ass2024
4 pages
Be - Electronics and Telecommunication Engineering - Semester 4 - 2022 - November - Object Oriented Programming Oop Pattern 2019
PDF
No ratings yet
Be - Electronics and Telecommunication Engineering - Semester 4 - 2022 - November - Object Oriented Programming Oop Pattern 2019
2 pages
DECAP202
PDF
No ratings yet
DECAP202
1 page
Dot NET Exam Analysis
PDF
No ratings yet
Dot NET Exam Analysis
6 pages
Nov 2017
PDF
No ratings yet
Nov 2017
1 page
3 Hours / 70 Marks: Seat No
PDF
No ratings yet
3 Hours / 70 Marks: Seat No
4 pages
Oop Merged
PDF
No ratings yet
Oop Merged
12 pages
Gujarat Technological University
PDF
No ratings yet
Gujarat Technological University
2 pages
WWW Manaresults Co in
PDF
No ratings yet
WWW Manaresults Co in
4 pages
Oops 1
PDF
No ratings yet
Oops 1
20 pages
Ilovepdf Merged
PDF
No ratings yet
Ilovepdf Merged
12 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
OOP 2017july
PDF
No ratings yet
OOP 2017july
4 pages
Object Oriented Programming Through C July 2022
PDF
No ratings yet
Object Oriented Programming Through C July 2022
1 page
Object Oriented Programming Using C++
PDF
No ratings yet
Object Oriented Programming Using C++
3 pages
OOP in C++
PDF
No ratings yet
OOP in C++
25 pages
OBJECT ORIENTED PROGRAMMING THROUGH C Jan 2023
PDF
No ratings yet
OBJECT ORIENTED PROGRAMMING THROUGH C Jan 2023
8 pages
Object Oriented Programming (CM - IF)
PDF
No ratings yet
Object Oriented Programming (CM - IF)
6 pages
Oops Nov 2011
PDF
No ratings yet
Oops Nov 2011
2 pages
II B. Tech I Semester Regular/Supplementary Examinations, December-2023 Object Oriented Programming Through C++
PDF
No ratings yet
II B. Tech I Semester Regular/Supplementary Examinations, December-2023 Object Oriented Programming Through C++
7 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
3134 Oct 20
PDF
No ratings yet
3134 Oct 20
2 pages
WWW Manaresults Co in
PDF
No ratings yet
WWW Manaresults Co in
4 pages
C++ Old Paper
PDF
No ratings yet
C++ Old Paper
10 pages
C++ Papers
PDF
No ratings yet
C++ Papers
9 pages
CS 820
PDF
No ratings yet
CS 820
3 pages
Object Oriented Programming Jan 2017 (2010 Scheme)
PDF
No ratings yet
Object Oriented Programming Jan 2017 (2010 Scheme)
2 pages
VTU-14-01-2019 01:41:02pm: TG - TG - TG - TG - TG - TG - TG - TG - TG
PDF
No ratings yet
VTU-14-01-2019 01:41:02pm: TG - TG - TG - TG - TG - TG - TG - TG - TG
2 pages
C++ QP
PDF
No ratings yet
C++ QP
7 pages
Object Oriented Programmingthrough C++ March 2021
PDF
No ratings yet
Object Oriented Programmingthrough C++ March 2021
4 pages
Object Oriented Programming With C++ Jan 2014
PDF
No ratings yet
Object Oriented Programming With C++ Jan 2014
1 page
Question Bank - I To V - Part A and Part B-1
PDF
No ratings yet
Question Bank - I To V - Part A and Part B-1
7 pages
Lathe
PDF
No ratings yet
Lathe
6 pages
Class 11
PDF
No ratings yet
Class 11
4 pages
Class 10
PDF
No ratings yet
Class 10
3 pages
Notes On Ch2 - MEE 612 - Pp. 10-14
PDF
No ratings yet
Notes On Ch2 - MEE 612 - Pp. 10-14
5 pages
CS 821
PDF
No ratings yet
CS 821
2 pages
Question Paper - Oop
PDF
No ratings yet
Question Paper - Oop
13 pages
Untitled
PDF
No ratings yet
Untitled
9 pages