BCS-031 SOLVED ASSIGNMENT 2017-18 FOR IGNOU BCA

Share:
BCS-031 Solved Assignment 2017-18 For IGNOU BCA/MCA


Course Code : BCS-031
Course Title : Programming In C++
Assignment Number : BCA(3)/031/Assignment/17-18
Last Dates for Submission: 15th October, 2017 (For July 2017 Session)
                                               : 15th April, 2018 (For January 2018 Session)

Questions Solved In Assignment:
1. (a) What is Object Oriented Programming (OOP) approach? Explain how
OOP is better than structured programming.
(b) Explain use of different operators of C++ , with the help of examples. (6 Marks)
(c) Explain use of followings in C++ programming, with an example
program for each.
(a) Nested if
(b) While loop

2. (a) Define class. Explain how an object is created in C++ ,with the help of
an example. Also explain how destructor is defined in C++.
(b) Explain the following in detail, in context of C++ programming.
i. Access specifiers
ii. Virtual Function
iii. Friend Function
(c) Explain how an object is passed as a parameter to a function, with the
help of a program.

3. (a) What is constructor? Explain how it is overloaded, with the help of a
C++ program.
(b) What is inheritance? What are different types of inheritance? Explain
how multiple inheritance is implemented in C++, with the help of a
program.
(c) Write a C++ program to overload ‘+’ operator in such a way that it return
the sum of lengths of two strings (Note: if S1 and S2 are two strings then
S1+S2 or S2 + S1 should give the sum of lengths of S1 and S2).

4. (a) What is stream manipulator? Explain use of setw( ) and setprecision( ) as
stream manipulator.
(b) What is template? Write appropriate statements to create a template class
for Queue data structure in C++.
(c) What are containers? Explain use of List container class, with the help of
an example.

5. (a) What is exception? How exceptions are handled in C++? Write program
to handle stack overflow as exception.
(b) What is function overloading? Explain with an example.
(c) Write C++ program to create a file and store your contact details in it.


« BCA 3rd SEMESTER SOLVED ASSIGNMENTS

Be the first to comment...