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

B.B.A (C.a) 2013 Pattern - Organized

1. The document is an exam for an Object Oriented Programming using C++ course. It contains 5 questions with multiple sub-questions testing concepts like data abstraction, return by reference, dynamic binding, message passing, class structures, pointers, inheritance, polymorphism, file operations and more. 2. Students are required to attempt questions that may include explaining concepts, writing programs to demonstrate ideas, tracing output of code samples, and more. Questions can have between 1-5 subparts and cover a wide range of OOP concepts tested in the C++ language. 3. Diagrams may be required where necessary and students should assume data if a question does not provide it. The exam is worth a total of

Uploaded by

Dhara raheja
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)
55 views5 pages

B.B.A (C.a) 2013 Pattern - Organized

1. The document is an exam for an Object Oriented Programming using C++ course. It contains 5 questions with multiple sub-questions testing concepts like data abstraction, return by reference, dynamic binding, message passing, class structures, pointers, inheritance, polymorphism, file operations and more. 2. Students are required to attempt questions that may include explaining concepts, writing programs to demonstrate ideas, tracing output of code samples, and more. Questions can have between 1-5 subparts and cover a wide range of OOP concepts tested in the C++ language. 3. Diagrams may be required where necessary and students should assume data if a question does not provide it. The exam is worth a total of

Uploaded by

Dhara raheja
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

Total No. of Questions—5] [Total No.

of Printed Pages—5

Seat
No. [5517]-401
B.C.A./B.B.A. (CA) (Sem. IV) EXAMINATION, 2019
OBJECT ORIENTED PROGRAMMING USING C++
(2013 PATTERN)
Time : Three Hours Maximum Marks : 80
N.B. :— (i) All questions are compulsory.
(ii) Figures to the right indicate full marks.
(iii) All questions carry equal marks.
(iv) Neat diagrams must be drawn wherever necessary.
(v) Assume suitable data if necessary.

1. Attempt any eight of the following : [8×2=16]


(a) What is data abstraction ?
(b) What is return by reference ?
(c) Define :
(i) Dynamic binding
(ii) Message Passing.
(d) Explain structure of C++ program.
(e) What is this pointer ?
(f) Explain const arguments.
(g) Define pure virtual function.
(h) Explain break, continue statements.
(i) What is static data member ?
(j) What is setf() function ?

P.T.O.
2. Attempt any four of the following : [4×4=16]
(a) Explain array of object with diagram.
(b) What is tokens in C++ ? Explain in detail.
(c) Explain function overloading with example.
(d) Write a C++ program to read contents of a text file and
count number of characters, words and lines in a file.
(e) Write a C++ program using friend function to calculate sum
of digits of a number.

3. Attempt any four of the following : [4×4=16]


(a) What is friend function ? Which are the features of friend
function ?
(b) What is inheritance ? Explain it with its types.
(c) Explain virtual base class with suitable diagram.
(d) Write a template program to sort integer and float array elements
of size five.
(e) Design a C++ program to create two base classes personnel
(name, address, e-mail-id, DOB) and academic (10th std marks,
12th std marks, class obtained). Derive a class Bio_data from
both these classes and prepare a bio data of a student having
personal and academic information.

4. Attempt any four of the following : [4×4=16]


(a) Explain inline function. Write the circumstances in which inline
function will work like a normal functions.
(b) Explain various errors handling functions used during file
operations.
[5517]-401 2
(c) Write a program for constructor with default arguments.
(d) Write a program to overload ....unary operator.
(e) Trace the output of the following program and explain it. Assume
there is no syntax error.
# include <iostreom.h>
int i, j;
class SYBCA
{
public :
SYBCA(int x=0, int y=0)
{
i=x;
j=x;
Display()
}
Void Display()
{
cout <<j<<’’ ’’;
}
}
int main()
{
SYBCA obj(10, 20);
int &s=i;
int &z=j;
i++;
cout << s– – << ‘‘ ‘‘ << ++z;
return 0;
}

[5517]-401 3 P.T.O.
5. Attempt any four of the following : [4×4=16]
(a) Explain compile time polymorphism and runtime polymorphism
with example.
(b) What is stream ? Explain a stream class hierarchy.
(c) Create a class time which contains data members as hours,
minutes and seconds. Write a C++ program using operator
overloading for the following :
(i) = = to check whether two times same or not.
(ii) >> to accept time
(iii) << to display time.
(d) Write a C++ program to copy the content of one file to another
file.
(e) Trace the output of the following program and explain it. Assume
there is no syntax error :
#include <iostream.h>
using namespace std;
Class Base1
{
public:
Base1()
{
cout << ‘‘Base1’s constructor called’’ << endl;
}
};
Class Base2
{

[5517]-401 4
public:
Base2()
{
cout << ‘‘Base2’s constructor called’’ << endl;
}
};
Class Derived : public Base2, public Base1
{
public:
Derived()
{
cout << ‘‘Derived’s constructor called’’ <<endl;
}
};
int main()
{
Derived d;
return 0;
}

[5517]-401 5 P.T.O.

You might also like