0% found this document useful (0 votes)
3 views1 page

Assignment C++ Programming

The document outlines assignment questions for a C++ Programming course at R.N. College, Hajipur. Students are required to answer seven questions covering topics such as Object-Oriented Programming (OOP), constructors and destructors, operator overloading, inheritance, and key concepts like encapsulation and polymorphism. Each question includes specific programming tasks or explanations related to C++ concepts.

Uploaded by

raazansh27
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Assignment C++ Programming

The document outlines assignment questions for a C++ Programming course at R.N. College, Hajipur. Students are required to answer seven questions covering topics such as Object-Oriented Programming (OOP), constructors and destructors, operator overloading, inheritance, and key concepts like encapsulation and polymorphism. Each question includes specific programming tasks or explanations related to C++ concepts.

Uploaded by

raazansh27
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

R.N.

College, Hajipur (Vaishali)

Department of B.C.A.

Assignment Questions (BCA-303) C++ Programming

Answer any seven questions


1. What do you mean by OOPS and discuss the feature of OOPS. Explain the area of OOPS

2. What is different between structure and class? Explain.

3. What are the use of constructor and destructor in C++ program? Explain with suitable example.

4. What do mean by static keyword? Explain static variable and static member functions. Write a
program to input the marks and find out the average of students using static data member.

5. Write a program to demonstrate the default initialization of the constructor member function of
class objects of the student’s information system such as name, roll no., sex, weight and height.

6. What do mean by Operator overloading? Write a program in C++ to perform overloading of a


Plus (+) operator for finding the sum of two given class objects.

7. Write a program to compare two complex number using operators overloading on == operator.

8. Differentiate between the following:

a) Multiple inheritance and multilevel inheritance


b) Friend function and inline function
c) Base class and derived class
d) Function overloading and function overriding.
e) Virtual function and Pure Virtual Function.

9. What is inheritance? What are different types of inheritance? Explain different form of
inheritance.

10. Write a program to show the single inheritance in two the classes and its appropriate function to
show the value of its member data.

11. What do you understand by virtual function, virtual class and abstract class? Discuss with
example.

12. Explain the following terms with example:

a) Encapsulation
b) Inheritance
c) Polymorphism
d) Class and objects
e) Friend function
f) Abstract class
g) Access specifier

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy