BCS-031
1.(a) What is
Object Oriented Programming ( OOP) paradigm? Explain basic concepts OOP. (7 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. (2 Marks)
(i)
while
(ii)
for
(d) Explain
use of any two I/O formatting flags in C++ with example. (2 Marks)
2.(a) What is
constructor? Define Book class with the basic features of a book. Define the
default constructor, parameterised constructor, member functions
display_book_details() for displaying the details of book. Use appropriate
access control specifiers in this program. (7 Marks)
(b) Explain
the following in detail with the help of examples, in context of C++
programming.
(i) Destructor
(ii) Virtual Function
(iii) Inline function
3.(a) What is
concept of reusability? How it is achieved in C++? Explain with the help of an
example.
(b) Write a
C++ program to overload „+‟ operator to find the sum of two complex numbers. (6 Marks)
(c) Explain
different visibility modes in C++, in context of inheritance. (4 Marks)
4.(a) What is
function overloading? Explain how overloaded functions are called with the help
of an example.
(b) What
is dynamic binding? Explain with the help of an example. (4 Marks)
(c) What
is an abstract class? Explain with an example. Also explain features of an
abstract class.
(6
Marks)
5.(a) What is
template? Write appropriate statements to create a template class for Stack
data structure in C++. (5 Marks)
(b) What are containers? Explain use of List container class with
the help of an example.(6 Marks)
(c) What is exception handling? Write C++ program to demonstrate
exception handling with multiple catch statements.
****************************************************************
Note: Answer
with Dotcom Books
www.dotcombooks4u.com
(Last 5 year
solved question paper with Assignment solutions)
9825183881
***************************************************************
No comments:
Post a Comment