Header Ads

Monday, 13 January 2020

IGNOU BCS-031 Solved Assignment 2019-20

IGNOU BCS-031 Solved Assignment 2019-20

BCA 3rd Semester BCS-031 Programming in C++ Solved Assignment Available. In this assignment have 5 questions all question is solved student got this assignment in pdf format soft copy on their email address. 


ignou bca bcs-031 solved assignment 2019-20

BCS-031 Solved Assignment 2019-20 

Q1.
(a) Differentiate between Object-Oriented Programming approach and Structured Programming Approach. Also, explain the advantages of Object-Oriented Programming over Structured Programming. (5)
(b) Explain different data types available in the C++ programming language. (5)
(c) Explain the use of followings in C++ programming with an example program for each.
(6)
(a) if
(b) while
(c) switch
Q2.
(a) What is a constructor? Define the class Account with all the basic attributes of a saving bank account. Define the default constructor, the parameterised constructor in Account class. Define member functions display_balance(), for displaying the balance of account and cash_withdrawal( ) to withdraw some amount from the account. Use appropriate access control specifiers in this program. (7)
(b) Explain the following in detail, in the context of C++ programming. (9)
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. (6
(b) Write a C++ program to overload the ‘+’ operator to find the sum of the 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). (10)
Q4.
(a) What is a stream manipulator? Explain use of setw( ) and set precision( ) as stream
manipulator. (4)
(b) Write a C++ program to read the contents of a file and display it on console. (5)
(c) What is an exception? Explain the advantages of exceptions handling . Write a program in C++ to perform simple arithmetic operations with proper exceptions handling. (7)
Q5.
(a) What is a template? Write appropriate statements to create a template class for a Stack data structure in C++. (5)
(b) What is polymorphism? Explain different types of polymorphism with examples.
(6)
(c) Write a C++ program to demonstrate the implementation of a friend function. Also, explain the advantages of friend function. 

 Buy Now

0 comments:

Post a Comment