Featured

bcs-31 solved assignment

BCS-31 SOLVED ASSIGNMENT

Course Code : BCS-031
Course Title : Programming in C++
Assignment Number : BCA(III)-031/Assign/14-15
Maximum Marks : 100
Weightage : 25%
Last Date of Submission : 15th October, 2014 (For July 2014 Session)
15th April, 2015 (For January 2015 Session)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. Wherever required, you may write C++ program and take its printout along with its output as part of solution.


(a) What is Object Oriented Programming? Explain its features with example. (5 Marks)
(b) Write a C++ program to create Matrix class. This class should have functions to find the
sum and difference of two matrices. (9 Marks)
(c) Explain the usage of the following C++ operators with the help of an example program.
(a) Relational Operator
(b) Logical Operators
(c) Scope resolution operator
Question 2:
(a) Define the class Teacher with all the basic attributes such as Name, Department,Subjects,date_of_ joining, years_of_experience etc. Define constructor(s), member functions display_detail() for displaying the Teacher details. Use appropriate access control specifiers in this program. Also inherit Post_Graduate_Teacher from Teacher class.
(b) Explain the following terms in the context of object oriented programming. Also explain
how these concepts are implemented in C++ by giving an example program for
each. 
(a) Virtual Function
(b) Operator Overloading
Question 3:
(a) What is polymorphism? What are different forms of polymorphism? Explain
implementation of polymorphism with the help of a C++ program. 
(b) What is access control specifier ? Explain the need of different access control specifiers with example.

Question 4 :
(a) Explain the concept of copy constructor with the help of an example program. 
(b) What is an exception? How an exception is different from an error? Explain advantage of
exceptions handling in C++, with the help of an example program.
(c) What is data stream? Explain stream hierarchy in C++. 
Question 5:
(a ) What is template? Explain advantage of using template in C++? Write C++ program to
explain function template and class template. 
(b) What is inheritance? Explain the different types of inheritance supported by C++?
Explain whether constructors are inherited by derived class in C++ or not, write a
program in support of your claim and show the output. 
author

Author Name

Author Description!

Get Free Email Updates to your Inbox!

Entri Populer

www.CodeNirvana.in

infolink adds

Powered by Blogger.

Translate

Total Pageviews

Copyright © ignou solved assignments | Distributed By My Blogger Themes | Designed By Code Nirvana