Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

GENBA SOPANRAO MOZE COLLEGE OF ENGINEERING,

Balewadi-Baner, Pune- 411 045


Savitribai Phule Pune University Maharashtra, India
(UNDER FACULTY OF SCIENCE AND TECHNOLOGY)

End-Term Examination – Oct/Nov 2023


MCA-FY (SEM-I)
Subject: Object Oriented Programming

Max.Marks:70 Date: 01/03/2023


Paper Code: [310903] Time: 10 AM-12:30 PM
_________________________________________________________________________________________________

Instructions:
1) Neat Diagrams must been drawn whenever necessary.
2) Figures to the right indicate full marks.
3) Section A and Section B carries equal weightage.
4) Q1 and Q5 are compulsory questions.

Section A
Q 1. Solve the following question:- [6]
a) Explain the advantage of OOP launguage?
b) Explain data abstraction and information hiding in C++?
c) What are abstact classes? Explain.

Q 2. a) Why C++ is consider as Object Oriented Launguage? Explains Principles of OOP? [5]
b) Define comment. Why is it important to write comments in programs? [5]
OR
c) Describe the need of header files in Object-Oriented Programming? Explain its Syntax and
Structure in C++. [5]
d) Compare C and C++. [5]

Q 3. a) Write a C++ program to solve Quadratic Equation using constructor. [5]


b) Explain Static Member Function and Inline Function. [5]
OR
c) Write a C++ program to make arithmetic calculator using inline function. [5]
d) What are function? Explain function prototype, accessing function and utility function? [5]

Q 4.a) Define a class Animal with their basic features as class members. Create two derived classes
from Animal named herbivores and Carnivores (type) with their own features too. Accept name of
animal with type and display all the related information. [5]
b) Explain concept of Operator Overlaoding? How Unary Operators and Binary Operators are
overloaded. [5]
OR

c) Create a class staff having fields: Staff_id , name, salary. Write a menu driven program for:

1) To accept the data. [5]


2) To display the data.
3) To sort the data by name.
d) Explain Relationship between Inheritance and polymorphism? How to override the member
functions in C++? [5]

Section B
Q 5. Solve the following questions:- [6]
a) Explain Friend Function?
b) Explain Overloading Function Templates?
c) Explain concept of Early Binding vs. Late Binding?

Q 6. a) Explain Virtual Functiom and Need for Virtual function in C++? What is This Pointer? [5]
b) Write a C++ program to demonstrate a pure virtual function which is invoked from the object of
derived class through the pointer of the base class. Base class contains getdata() and display().
Display the information of employee using this. [5]
OR
c) Write a C++ program to maintain the records of person with details (Name and Age) and find the
eldest among them. The program must use this pointer to return the result. [5]
d) Explain Static function? Explain dynamic binding?

Q 7. a) Write a program to copy the contents of one file to another. [5]


b) Explain Genrtic friend function using Template? [5]
OR
c) Write a program for reading and writing data to and from the file using command line
arguments. [5]
d) Explain Ecetion Handing in C++. [5]

Q 8.a) Explain Error Handling in File I/O? [5]


b) Write a C++ program to make a simple calculator using class template. [5]

OR
c) Write a C++ program to sort an array in ascending order using function template. [5]
d) Explain Input and output operation on Files handling? [5]

________________________________________________________________________________________

*************** ALL THE BEST ***************

You might also like