Ignou Solved Assignment for BCS-031 Programming in C++ | SolveZone
whatssapp

Product Detail

Ignou Solved Assignment for BCS-031 Programming in C++

University  IGNOU
Service Type Solved Assignment
Course B.C.A
Semester
Short Name or Subject Code BCS-031 Programming in C++
Product B.C.A of Solved Assignment (IGNOU)
Pattern
Price
Click to view price

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.

Q1.

(a) Differentiate between Object Oriented Programming approach and Structured Programming Approach. Also explain advantages of Object Oriented Programming over Structured Programming.

(b) Explain different data types available in C++ programming language.

(c) Explain the use of followings in C++ programming with an example program for each

(a) if

(b) while

(c) switch

Q2.

(a) What is constructor? Define the class Account with all the basic attributes of a saving bank account. Define the default constructor, parameterised constructor in Account class. Define member functions display_balance(),for displaying the balance of account and cash_withdrawal( ) to withdraw some amount from account. Use appropriate access control specifiers in this program.

(b) Explain the following in detail, in context of C++ programming.

 i. Access Specifiers

ii. Virtual Function

iii. Abstract Class

Q3.

(a) What is inheritance? Explain different types of inheritance supported by C++ with the help of example programs.

(b) Write a C++ program to overload ‘+’ operator to find the sum of length of two given strings. (Note: if S1 and S2 are two strings then S1+S2 should give the sum of lengths of S1 and S2).

Q4.

(a) What is stream manipulator? Explain use of setw( ) and setprecision( ) as stream manipulator.

(b) Write a C++ program to read the contents of a file and display it on console.

(c) What is an exception? Explain advantages of exceptions handling .Write a program in C++ to perform simple arithmetic operations with proper exceptions handling.

Q5.

(a) What is template? Write appropriate statements to create a template class for Stack data structure in C++.

(b) What is polymorphism? Explain different types of polymorphism with examples.

(c) Write C++ program to demonstrate implementation of friend function. Also explain advantages of friend function.