Professional Documents
Culture Documents
pdf
07._June_2013 BCS-031.pdf
08._Dec_2013 BCS-031.pdf
09._June_2014 BCS-031.pdf
10._Dec_2014 BCS-031.pdf
11._June_2015 BCS-031.pdf
12._Dec_2015 BCS-031.pdf
13._June_2016 BCS-031.pdf
14._Dec_2016 BCS-031.pdf
14._Dec_2016 -S BCS-031.pdf
15._June_2017 BCS-031.pdf
16._Dec_2017 BCS-031.pdf
16._Dec_2017 (S) BCS-031.pdf
17._June_2018 BCS-031.pdf
18._Dec_2018 BCS-031.pdf
19._June_2019 BCS-031.pdf
20._Dec_2019 BCS-031.pdf
21._June_2020 BCS-031.pdf
22._Dec_2020 BCS-031.pdf
23._June_2021 BCS-31.pdf
24._Dec_2021 BCS-031.pdf
25._June_2022 BCS-31.pdf
26._Dec_2022 BCS-031.pdf
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 : 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 : 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 : 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 : 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 : 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 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
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 BCS-0311
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 I BCS-031(S) I
BACHELOR OF COMPUTER APPLICATIONS
(BCA) (Revised)
i u Term-End Examination
December, 2016
BCS-031(S ) 2 P.T.O.
5. (a) What is an access specifier ? Explain
different types of access specifiers available
in C++. 5
(b) What is dynamic binding ? Explain with
the help of an example. 5
(c) Write a C++ program to define a class
"Account". Derive a "Saving_Account"
class from the Account class. Define
appropriate constructors for both the
classes. Also define a method to display the
account balance. Make necessary
assumptions, if required. 10
BCS-031(S) 3 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 : 4 BCS-031(S)
BACHELOR OF COMPUTER APPLICATIONS
(BCA) (Revised)
0 02 5 4 Term-End Examination
December, 2017
BCS 031(S) : PROGRAMMING IN C++
-
BCS-031(S) 1 P.T.O.
(d) Identify the problem with the following
code. Suggest the way to correct the
problem. 4
void large (int &a, int &b);
int main( )
{ large (5, 7); }
void large (int &a, int &b)
{ if (a > b)
a = —1;
else
b = —1; }
BCS-031(S) 2 P.T.O.
2. (a) What is Abstract Class ? Explain the use of
abstract class in C++, with the help of an
example program. 10
BCS-031(S) 4 500
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 : 2 BCS-031(S)
BCS-031(S) 2 8,000
1169002
No. of Printed Pages : 4 BCS-031
Bachelor of Computer Applications
(BCA) (Revised)
Term-End Examination
June, 2019
BCS-031 : PROGRAMMING IN C++
(Weightage 75%)
(A..27) P. T. 0.
[2] BCS-031
(A-27)
I3/ BCS-031
(c) Encapsulation
BCS--031 • 5,500
(A-27)
No. of Printed Pages : 2 M06874 I BCS-031 I
4 44.000.
No. of Printed Pages : 4 BCS-031
BACHELOR OR COMPUTER
Term-End Examination
June, 2020
Weightage : 75%
the rest.
paradigm. 5
P. T. O.
[2I BCS-031
help of an example. 5
example. 4
class. 10
10
P. T. O.
[4] BCS-031
BCS-031 3,030
No. of Printed Pages : 4 BCS-031
BACHELOR OF COMPUTER
APPLICATIONS (B. C. A.) (REVISED)
Term-End Examination
December, 2020
BCS-031 : PROGRAMMING IN C++
Weightage : 75%
Note : Question number 1 is compulsory and
carries 40 marks. Attempt any three
questions from the rest.
Lot-I P. T. O.
[2] BCS-031
each. 10
salary in it. 10
P. T. O.
[4] BCS-031
BCS–031
No. of Printed Pages : 4 BCS-031
BCS-031 1 P.T.O.
(f) What is Function Overloading ? How are
function calls matched with overloaded
functions ? Explain with the help of an
example. 5
BCS-031 2
3. (a) What is a Static Member Function ? Write
a program in C++ to illustrate the concept
of the static member function. 5
BCS-031 3 P.T.O.
(b) Compare Class templates and Function
templates with the help of example code. 5
BCS-031 4
[2] BCS-031
BCS-031 : PROGRAMMING IN C++ (d) What are static members of a class ? What
Time : 3 Hours Maximum Marks : 100 is the utility of having static members ?
Note : Question number 1 is compulsory and carries (e) What are constructors ? Write the
40 marks. Attempt any three questions from characteristics of a constructor. What are
1. (a) What are the essential properties of object (f) What is operator overloading ? Why some
oriented programming differ from program to overload ‘+’ operator to add two
P. T. O.
[3] BCS-031 [4] BCS-031
(g) What is STL ? Briefly discuss the 3. (a) What is a friend function ? Write a
friend function. 5
2. (a) What do you understand by the signature of
(b) Explain copy constructor with the help of
a method ? Briefly discuss the components of
an example program. 5
the signature of a method. 5
(c) Discuss the role of “new” and “delete” as
(b) Compare virtual functions and pure virtual
memory management operations. 5
functions with the help of an example. 5
(d) Explain the role of destructors in C++
(c) Discuss the taxonomy of C++ data types
memory management. Write a program
with the help of a suitable block diagram. 5
in C++ to demonstrate the use of
(d) What are Breaking Statements ? Give
destructors. 5
syntax of the following breaking
4. (a) Explain the access specifiers used in
statements : 5
inheritance in C++ with the help of an
(i) break
example. 5
(ii) continue
(b) Compare multiple inheritance with
(iii) goto
multilevel inheritance and hierarchical
P. T. O.
[5] BCS-031
BCS–031
P. T. O.
No. of Printed Pages : 3 BCS-031
BCS-031 1 P.T.O.
(f) How does virtual function differ from a
pure virtual function ? Explain with the
help of an example. 5
BCS-031 2
4. (a) Write a program in C++ to open an existing
file and insert the text ‘‘File program in
C++’’ at the end of the file. Your program
should have suitable comments. 10
BCS-031 3 P.T.O.
No. of Printed Pages : 4 BCS-031
BACHELOR OF COMPUTER
APPLICATIONS (BCA) (REVISED)
Term-End Examination
December, 2022
BCS-031 : PROGRAMMING IN C++
Weightage : 75%
the rest.
P. T. O.
[2] BCS-031
10
P. T. O.
[4] BCS-031
BCS–031