Exam Details

Subject object oriented programming and c++
Paper
Exam / Course b.c.a./b.c.a. (lateral)
Department
Organization Alagappa University Distance Education
Position
Exam Date May, 2017
City, State tamil nadu, karaikudi


Question Paper

DISTANCE EDUCATION
B.Sc. (CS)/B.Sc. (Lateral) (Computer Science) DEGREE
EXAMINATION, MAY 2017.
OBJECT ORIENTED PROGRAMMING AND
(2007 onwards)
Time Three hours Maximum 100 marks
Answer any FIVE questions.
All questions carry equal marks.
20 100)
1. Explain the benefits of object oriented
programming?
State and explain data types? Give example.
2. Explain 'new operator' and 'destructor' with respect
to with examples.
Explain friend function with example and list sum
of the special properties of friend function?
3. Compare two ways of operator overloading: as a
method of class and as an external friend function?
Give example.
Explain with example "static variable" and "static
variable as a member of a class"?
Sub. Code
23
DE-211
2
wk7
4. Write a program to explain the concept of a
friend function to two classes?
Write a program in that will convert and print
the temperature from Fahrenheit to Celsius and
from Celsius to Fahrenheit using copy constructor
where the copy constructor is defined with in the
class declaration itself?
5. What is overloading? Explain operator, binary operator
and unary operator overloading with program
example?
6. Write a program using polymorphism to
calculate the square of any two numbers of type int,
float, double and long?
Explain virtual function and pure virtual function
with example?
7. What is inheritance? Explain in detail the various types
of inheritance with suitable example?
8. Write program for the following
Using dynamic constructors, write a program
to concatenate two given strings.
To add and subtract given two matrices of order
defined in class. Using operator overloading.


Subjects

  • business communication
  • computer graphics
  • internet and java programming
  • lab ii – (c++ and ms office)
  • lab iii — oracle and visual basic
  • management principles and techniques
  • micro processors and personal computers
  • object oriented programming and c++
  • office automation
  • rdbms
  • systems analysis and design
  • windows and visual basic