0% found this document useful (0 votes)
144 views1 page

C++ CS302 Term-Final

This document is a summary for a University Examination for the second year, first semester Principles of Programming Languages (C++) course. The exam contains 100 total marks divided into two sections: Group A, worth 25 marks, contains short answer questions; and Group B, worth 75 marks, contains longer answer questions. Students are instructed to answer questions concisely and start each question on a fresh page. The exam covers topics such as object-oriented programming, classes, access specifiers, constructors, destructors, inheritance, polymorphism, operator overloading, and virtual functions.

Uploaded by

Gaitonde Ganesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
144 views1 page

C++ CS302 Term-Final

This document is a summary for a University Examination for the second year, first semester Principles of Programming Languages (C++) course. The exam contains 100 total marks divided into two sections: Group A, worth 25 marks, contains short answer questions; and Group B, worth 75 marks, contains longer answer questions. Students are instructed to answer questions concisely and start each question on a fresh page. The exam covers topics such as object-oriented programming, classes, access specifiers, constructors, destructors, inheritance, polymorphism, operator overloading, and virtual functions.

Uploaded by

Gaitonde Ganesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

University Examination-Semester

2nd year, 1stsemester (2013-2014)


Course Code-CS302 Total Marks – 100
Course Title- Principle of Programming Languages (C++) Time Duration – 3hrs
All the answer should be in brief and to the point.
Strike off all the blank pages of copy, after completing your work.
The units are indicated against the respective question on right hand side.
Start answering a new question from a fresh page, and all the parts of a question should be attempted at one place.

Group-A
(Answer any five questions) [5 x 5=25]
1. What do you mean by object oriented programming language? Distinguish between object
oriented programming and procedural oriented programming? [2.5*2]
2. What is cascading in C++? Describe cascading with help of small program? [2.5*2]
3. Briefly describe class in C++ with the help of an example? Describe the utility of class in
C++? [2.5*2]
4. What do you mean static data members? Describe the properties of static data member by
using a suitable example? [2.5*2]
5. What do you mean by access specifier? Briefly describe its type? [2.5*2]
6. What do you mean by parameterized constructor? Describe the utility of a default
constructor with the help of a suitable example? [2.5*2]
7. What do you mean by destructor? Explain it with an example? [2.5*2]

Group-B
(Answer any five questions) [5x 15=75]

8. Describe copy constructor with the help of an example? Describe the utility of an inline
function with the help of an example? Describe with example how the memory allocation
takes place for C++ program? [5+5+5]
9. “Is friend function really violates the data security in c++” Explain it with appropriate
reason.Describe static member function with the help of an example? Explain how friend
function can access the private data member of the class.? [5+5+5]
10. Describe inheritance with the help of an example? Explain multiple inheritances in details?
Describe with an example how will you resolve the ambiguity problem in multiple
inheritance? [5+5+5]
11. Describe virtual base class problem in details? Describe how this problem can be resolved
by using an example? Explain this pointer with the help of a suitable example? [5+5+5]
12. Explain polymorphism with an example? Briefly describe its types? Explain function
overloading with an example? [5+5+5]
13. Explain the utility of operator overloading with the help of an example? Write a program
to perform the operation x=40+y, where x, y are the objects of a class? [5+10]
14. Explain function overriding with the help of an example? Explain how function overriding
problem can be resolved by using virtual function? Explain pure virtual function with the
help of an example? [5+5+5]

Page 1 of 1

You might also like