BCS 031 PDF
BCS 031 PDF
BCS 031 PDF
BCS-031 2
(b) Write a program in C++ to calculate the
factorial of a given number. 5
(c) Explain the association of dynamic binding
and run-time polymorphism, with example. 5
(iv) &&
BCS-031 3 9,000
No. of Printed Pages : 3 BCS-031
BACHELOR OF COMPUTER APPLICATIONS
(BCA) (Revised)
Term-End Examination
June, 2016 .
7E;
BCS-031 : PROGRAMMING IN C++
BCS-031 2
4. (a) What are base and derived classes ? Create
a base class called Stack and a derived
class called Mystack. Write an interactive
C++ program to show the operations of a
stack. 10
BCS-031 5,500
No. of Printed Pages : 3 I BC S-031 I
BACHELOR OF COMPUTER APPLICATIONS
(BCA) (Revised)
Term-End Examination
June, 2017
BCS 031
- 1 P.T.O.
(d) Define the Standard Template Library.
How is the class template different from
the function template ? Explain. 6
BCS-031 2
(c) Write the general form of the user-defined
manipulators. Design a single manipulator
format to provide the following output
specifications for printing float values : 10
(i) 10 column width
(ii) Right Justified
(iii) Two-digit precision
(iv) Filling of unused places with *
(v) Trailing zeroes shown
BCS-031 3 3,500
No. of Printed Pages : 4 I BCS 031
-
BCS-031 1 P.T.O.
(d) Why will the function given in the
following code fragment not work ? What
should be done to make it work ?
int main( )
void calc(void)
float x, y, s;
cin » x » y
BCS-031 4 15,000
No. of Printed Pages : 3 I BCS 031
-
BCS-031 : PROGRAMMING IN C ++
Time : 3 hours Maximum Marks : 100
(Weightage 75%)
Note : Question no. 1 is compulsory and carries 40
marks. Attempt any three questions from the rest.
BCS-031 1 P.T.O.
2. (a) What do you understand by friend
function ? Write a C++ program to find out
the sum of n given numbers using friend
function. 10
(b) Explain the difference between private,
protected and public access specifier with
respect to class and its object. Write a
program in this support. 10
BCS-031 2
5. (a) What is containership ? Write the
important containers available in C++ with
their importance. 10
BCS-031 3 6,500
No. of Printed Pages : 3 BCS-031
DIPLOMA IN CIVIL ENGINEERING
Term-End Examination
December, 2012
O
O
BCS-031 : PROGRAMMING IN C++
Time : 2 hours Maximum Marks : 100
(Weightage 75%)
Note : Question number 1 is compulsory and carries 40 marks.
Attempt any three questions from the rest.
BCS-031 1 P.T.O.
(e) Explain the concept of copy constructor 6
with the help of an example program.
BCS-031 2
4. (a) Explain need of operator overloading. Also 10
explain why some operators can not be
overloaded ? Write a C++ program to
overload '+' operator to add two character
strings.
(b) What is data stream ? Explain stream 5
hierarchy in C++.
(c) What is friend function ? Explain its 5
advantage with the help of an example.
B CS-031 3
No. of Printed Pages : 2 BCS-031
BACHELOR OF COMPUTER APPLICATIONS
(Revised)
Term-End Examination
December, 2013
BCS-031 1 P.T.O.
2. (a) What is exception handling ? How is it 10
performed in C++ ? Explain with the help
of an example.
(b) Write an object oriented program in C++ to 10
read a set of integer numbers. Upto n, where
n is defined by the user and print the
contents of the array in the reverse order
using a class template.
BCS-031 2
No. of Printed Pages : 3 BCS-031
BACHELOR OF COMPUTER APPLICATIONS
(Revised)
Term-End Examination
00074 December, 2014
BCS-031 : PROGRAMMING IN C ++
BCS-031 2
(b) What do you mean by the file stream
operations ? Write C++ program to
demonstrate the reading from disk file and
writing the result to the disk file.
(c) What is friend function ? Explain its
concept with the help of a suitable
example. 3
BCS-031 3 9,000
No. of Printed Pages : 2 BCS-031
BACHELOR OF COMPUTER APPLICATIONS
(Revised)
Term-End Examination
O June, 2014
BCS-031 1 P.T.O.
2. (a) What is exception handling ? What are the 10
keywords used to handle the exception in
C++ ? Write a C++ program to handle
divide by zero exception.
(b) Write a program in C++ using operator 10
template for the binary numbers to perform
a simple arithmetic operations such as add
and subtract.
BCS-031 2
No. of Printed Pages : 2 BCS-031(S)
BCS-031(S) 2 8,000
No. of Printed Pages : 3 B CS 031
- I
BACHELOR OF COMPUTER APPLICATIONS
(BCA) (Revised)
05405 Term-End Examination
June, 2018
BCS-031 3 6,000
No. of Printed Pages : 3 B CS-031
BACHELOR OF COMPUTER APPLICATIONS
(Revised)
Term-End Examination
O
June, 2013
O
BCS-031 : PROGRAMMING IN C++
Time : 3 hours Maximum Marks : 100
(Weightage 75%)
Note : Question number 1 is compulsory and carries 40 marks.
Attempt any three questions from the rest.
BCS-031 1 P.T.O.
(e) What is operator overloading ? Briefly 6
explain general rules of operator
overloading.
(f) What is stream manipulator ? Explain use 5
of setw( ) and setprecision( ) as stream
manipulator.
BCS-031 2
4. (a) What is need of exception handling in C++ 10
programming ? Explain with an example
how exceptions are handled in C++. Briefly
describe the hierarchy of exception classes
in C++ standard library.
(b) What is template class ? Explain advantages 10
of template class. Create a template class
for Linked - List data structure.
BCS-031 3
No. of Printed Pages : 3 CI 1Es I BCS-031
BACHELOR OF COMPUTER APPLICATIONS
(BCA) (Revised)
Term-End Examination
December, 2015
BCS-031 : PROGRAMMING IN C ++
Time : 3 hours Maximum Marks : 100
(Weightage : 75%)
BCS-031 1 P.T.O.
(e) Describe the concept of classes and objects
through examples. 5
(f) What are Container Classes ? List the
different types of containers and give three
examples of each.
(g) List any five common examples of
exceptions.
BCS-031 2
3. (a) Define friend function. Discuss memory
requirements for classes, objects, data
members and member functions with an
example. 10
BCS-031 3 11,000