0% found this document useful (0 votes)
108 views5 pages

Oops With C++ PYQ

Uploaded by

pateg48332
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)
108 views5 pages

Oops With C++ PYQ

Uploaded by

pateg48332
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/ 5

r r R w e yor sxam KOu NOJ Bam Rou No. M.M..

AAAANYe

END TERM EXAMINATION


THIRD StSTER BCA JANUARY 2024
Paper Code: BCA-205 Subject: Object Orlented Programming Q6 i) Wrte a menu driven program to overload arithmetic binary operatrs
wtth C++ (t. -, . ) using user defined type. (10)
Time: 3 Hours Madimum Mark: 75
Note: Attempt fve questions in all incuding Qlvhich is compulsory. Select one (2.5)
question from each unit. ) Explain differert access specifiers with respect to inheritance.
OR
Q1 Answer the following (any ive): (5X5-25)
07 a) WAP for conversion between built in and user defined data type. (
a) What are different types of inheritance? Explain with the help of diagram and b) How to define virtua and pure virtual functions? Explatt with a smal
example. Segment of ccde. (3.5)
b Distinguish between data abstraction, data encapsulation and data hiding with
example.
c) What is the ifference between structures and classes in C+?
d) What is the difference betwecen constructor and destructor? Explain with UNIT - V
example. o8 a) What is an exceptian? What is the procedure of handling exceptions in C++?
e) How is poBymorphism achieved at a) compile time and b) run time? How to specifs an eception for a function? (8)
9 What are the functions to open, close, read and write into a file. Give syntax
b) How generic programming is achieved in C++? How to define generic
UNIT -I function? (4.3)
Q2 Write a menu driven programn with the following options:
i) Check whether a number is even / odd. OR
ii) Check whether a number is divisible by another number.
ii) Check whether a character entered is vowel or not. Q9 Write an interactive program to create an employee file. It haa to maintain
(Hint: use function overloading) (12.5) information such as empid, name, qualification, designation and salary. The
OR
user mus: be able to access all details about a person either by entering
employee name or by employee id.
Q3 Explain the following with example: (2.56-12.5) (12.5)
a) Inline functions
b) Reference variable
c) New and delete operator
) Procedure and object oriented programming
Object and instance

UNIT - II

Q4 What is a friend function? What are its various characteristics? Explain with
example. Can we have a friendclass? (12.5)

OR

Q5 Can we overoad constructors? If yes, please explain different types of


constructors with example. (12.5)

P.T.0.

BeA-20s
(Please wrtte your Exam Roll No.) Exam Roll No.

END TERM ExAMINATION


THIRD SEMESTER BCA] NovEMBER-DECEMBER 2018
Paper Code: BCA-209 Subject: Object Orlented Programming Using C++
Time: 3 Hours Maximum Marks: 75
Note: Attempt any flve questtons including Q.Nol which is compulsory.
Select one question from each unit.

Answer the following: (10x2.5=25)


fa) Explain data hiding and encapsulation with an example.
(bj Compare the features of C and C++.
Explain the features of macros and inline functions.
( Give the syntax of defining a class.
Je Explain various types of inheritance.
( Compare the features of early binding and late binding.
Ig Explain virtual base class with an illustration.
Ah)Explain the features of generic programming.
Explain namespace. Give an example.
@ Explain various types of exceptions.
UNIT-I
Q2 (a) Compare the feature of structured programming language and object
oriented programming language. (4)
(b) Explain the features of inheritance and exception handling used in object
oriented programming languages. (4.5)
(c) Explain the features of C++ environment: (4)
i. C++ Compilers
ii. Testinga C++ program
OR
Q3Aa Write a C+t program to illustrate the use of new () and delete () operators.(4.5)
b), Explain various types of polymorphism. (4)
s Mention any four standard libraries used in C++. (4)
UNIT-II
94 (a) Write a C++ program to illustrate the default constructor, parametric
constructor and copy constructor. (4.5)
(b) Explain the role of friend functions in C++. (3.5)
(c) Explain the following: (4.5)
i Abstract class and meta class
ii Data members and member functions
iii. This pointer
OR
sa Explain function overloading with an example. (4)
6) Explain the role of constructors and destructors in C+t. (3.5)
Ae) Write a C++ program to illustrate the following: (5)
Call by value
ii Call by reference
UNIT-III

Q6 (a) Write a C++ program to illustrate the following: (i) overloading of member
functions and (i) overriding of member functions. (6)
(b) Write a C+t program to illustrate virtual functions. (4.5)
(c) Give an example to illustrate aggregation and composition. (4)
OR
P.T.O.
|-2-]
(a Explain the access mechanism of public, private and protected related to
inheritance.
(4.5)
o Explain how to resolve ambiguity in multiple inheritances with an example.(3)
I) Write áC++ program to illustrate the following: (5)
Overload binary operator
Overload unary operator
UNIT-IV
Q8 (a) Write a C++ program to illustrate the following stream functions: is_open ().
get() and put). (5)
(b) Write a C++ program to illustrate overloading of template functions.
(c) Explain the features of persistent objects. Give an example. (4)
(3.5)
OR
Q9 (a Give the syntax of write ) and read () functions using in file streams. (4)
b Explain the template functions with an example. (4)
(e Write a C+t program to illustrate try, throw and catch statements. (4.5)

ttttttttt
(Please write your Exam Roll No.) Exam Roll No.
END TERM EXAMINATION
THIRD SEMESTER BCA]NovEMBER-DECEMBER 2018
Paper Code: BCA-209 Subject: Object Oriented
Time: 3Hours Programming Using C++
Maximum Marks: 75
Note: Attempt any five questions including 0. Nol which is compulsory.
Select one question from each unit.
Q1 Answer the following: (10x2.5=25)
(a) Explain data hiding and encapsulation with an example.
(b) Compare the features of C and C++.
(c) Explain the features of macros and inline functions.
(d) Give the syntax of defining a class.
(e) Explain various types of inheritance.
() Compare the features of early binding and late binding.
(g) Explain virtual base class with an illustration.
(h) Explain the features of generic programming.
(i) Explain namnespace. Give an example.
(i) Explain various types of exceptions.

UNIT-I
Q2 (a) Compare the feature of structured programming language and object
oriented programming language. (4)
(b) Explain the features of inheritance and exception handling used in object
oriented programming languages. (4.5)
(c) Explain the features of C++ environment: (4)
i. C++ Compilers
ii. Testing a C++ programn
OR
Q3 (a) Write a C++ program to illustrate the use of new () and delete () operators.(4.5)
(b) Explain various types of polymorphism. (4)
(c) Mention any four standard libraries used in C++. (4)
UNIT-II
Q4 (a) Write a Ct+ program to illustrate the default constructor, parametric
constructor and copy constructor. (4.5)
(b) Explain the role of friend functions in C++. (3.5)
(c) Explain the following: (4.5)
Abstract class and meta class
ii. Data members and member functions
iii. This pointer
OR
Q5 (a) Explain function overloading with an example. (4)
(b) Explain the role of constructors and destructors in C++. (3.5)
(c) Write a C++ program to illustrate the following: - (5)
i. Call by value
ii. Call by reference

UNIT-III

Q6 (a) Write a C++ program to illustrate the following: (i) overloading of member
functions and (ii) overriding of member functions. (6)
(b) Write a C++ program to illustrate virtual functions. (4.5)
(c) Give an example to illustrate aggregation and composition. (4)
OR
P.T.0.
[2-]
Q7 (a) Explain the access mechanism of public, private and
inheritance. protected related to
(b) Explain how to resolve ambiguity in multiple (4.5)
inheritances
(c) Write a C++ program to illustrate the following: with an exanple.(3)
i Overload binary operator (5)
ii. Overload unary operator
UNIT-IV
Q8 (a) Write a C++ program to illustrate the following stream functions:
is_open (),
get() and put). (3)
(b) Write a C++ program to illustrate overloading of template functions.
(c) Explain the features of persistent objects. Give an example. (4)
(3.5)
OR
Q9 (a) Give the syntax of write () and read () functions using in file
streams. (4)
(b) Explain the template functions with an example. (4)
(c) Write a C+t program to illustrate try, throw and catch statements.
(4.5)

*********

You might also like