Object Oriented Programming System (MCA-301) : (Assignment - 1)
Object Oriented Programming System (MCA-301) : (Assignment - 1)
Object Oriented Programming System (MCA-301) : (Assignment - 1)
[MCA-301]
[Assignment -1]
1. Why C++ called object oriented programming/OOP language?
2. Differentiate between C and C++?
3. What is encapsulation?
4. What is a constructor?
5. What is overloaded constructor?
6. What is a destructor?
7. What is a copy constructor?
8. Differentiate between early binding and late binding, with an example explain how late
10. Define pure virtual functions. Write a C++ program to illustrate pure virtual functions.
11. State the important features of object oriented programming. Compare object oriented
12. Define function overloading. Write a C++ program to define three overloaded functions to
swap two integers, swap two floats and swap two doubles.
13. List the characteristics of a constructor. Write a C++ program to define a suitable
parameterized constructor with default values for the class distance with data members feet
and inches.
[Assignment -2]
2. What is the default access modifier for class members and member functions in a class?
3. What is the difference between a C structure and a C++ class?
9. Explain the use of ifstream and ofstream classes for file input and output.
10. Explain the file operation functions in C++ to manipulate the position of file pointers in a
11. Write a C++ program to create a class called STRING and Implement the following
operations. Display the result after every operation by overloading the operator <<.
12. Define a class to represent a bank account. Data Members: Depositor name, Account number,
Type of account balance. Member Functions: Assign initial value, Deposit an amount,
i. Parameterized constructor
iii. Destructor
[Assignment -3]
4. What is polymorphism?
7. What is overriding?
8. Define exception handling. Explain the use of try, catch and throw for exception handling in
C++.
10. Explain briefly the three foundational items of standard template library.
11. What is Inheritance? Explain multilevel, multiple and hierarchical inheritance with example.
12. Write a c++ program to perform the addition and subtraction of complex numbers using
operator overloading.
13. Write a c++ program to perform a student information system using multilevel inheritance.
The system should consists student personal details, academic record and extra curriculum.
[Assignment -4]
5. What is inheritance?
7. How can I overload global << and >> operators to work with cin, cout etc?
8. Discuss about the basic concepts of object-oriented programming.
10. What is polymorphism? Explain and give an example for run-time polymorphism.
11. What is inline function? Write in which situation the inline function may not work. Write a
12. Write a C++ program to create a file namely “student” with two field name and age. Get any
five student information and write it in file and close it. Again display the information in the
13. Furnish the detail description about Classes, object and access specifier. Write a program for
[Assignment -5]
1. What is an exception?
4. Can you write a try-catch block that will catch all type of exceptions?
5. What is namespace?
9. Differentiate between function overloading and function templates, can we overload a fuction
10. Differentiate between class and structure. With an example explain the syntax for defining a
class.
11. WAP that includes a try block and a catch clause which processes the arithmetic exception