BCS-031 Solved Assignment For BCA 3rd Semester IGNOU

0
Share

BCS-031 Solved Assignment July 2019 and January 2019 Session

Course Code : BCS-031
Course Title : Programming in C++
Assignment Number : BCA(3)/031/Assignment/2018-19
Maximum Marks : 100
Weightage : 25%
Last Date of Submission : 15th October, 2018 (For July, 2018 Session)
15th April, 2019 (For January, 2019 Session)

Note: This assignment has five questions carrying a total of 80 marks. Answer all the questions. Rest 20 marks are for viva-voce. You may use illustrations and diagrams to enhance explanations. Please go through the guidelines regarding assignments given in the Programme Guide for the format of presentation. Wherever required, you may write C++ program and take its output as part of solution.

Question 1:
(a) Write advantages of Object Oriented Programming. Also differentiate between Object Oriented Programming approach and Structured Programming Approach. (5 Marks)
(b) Explain different data types available in C++ programming. (5 Marks)
(c) Explain the use of followings in C++ programming with an example program for each. (6 Marks)
(a) if (b) for (c) switch

Question 2:
(a) What is class? What are different access specifiers in C++? Differentiate between public and protected class. (4 Marks)
(b) Define the class Saving_Account with all the basic attributes of a saving bank account. Define the default constructor, parameterised constructor, member functions deposit(int) for depositing money in account and display_balance() for displaying the balance of account. Use appropriate access control specifiers in this program. (6 Marks)
(c ) Explain the following in detail in context of C++ programming. (6 Marks)
i. Abstract Class
ii. Friend Function
iii. Operator Overloading

Question 3:
(a) What is inheritance? What are different types of inheritance? Explain order of constructor calling in multilevel inheritance with the help of a program.
(6 Marks)
(b) Write a C++ program to overload ‘+’ operator to add two complex numbers.
(6 Marks)
(c ) Explain use of static data member with the help of an example. (4 Marks)

Question 4:
(a) Explain concept of function overriding with the help of an example. (4 Marks)
(b) Explain the following functions for manipulating file pointers, with the help of example program: (4 Marks)
 seekg()
 seekp()
(c) What is an exception? Explain advantages of exception handling. Write a program in C++ to add two matrices with provision of exceptions handling. (8 Marks)

Question 5:
(a) Explain use of following functions with the help of example code: (6 Marks)
(i) get()
(ii) put()
(iii) peek()
(iv) ignore()
(b) What is template? Write appropriate statements to create a template class for Stack Data Structure in C++. (5 Marks)
(c) Write C++ program to copy the content from one file into another file. (5 Marks)

 

Note: Question 2 (b) is not answered in this solution.

Goto Download Page

Download IGNOU BCA Solved Assignment 2018-19 Session For All Subjects