0% found this document useful (0 votes)
11 views5 pages

C++ Object-Oriented Programming Question Bank

The document is a question bank covering Object Oriented Programming using C++. It includes questions categorized by units, focusing on principles of OOP, functions and constructors, inheritance, pointers and polymorphism, and file operations. Each unit contains 2-mark and 4-mark questions that assess understanding of key concepts and applications in C++.

Uploaded by

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

C++ Object-Oriented Programming Question Bank

The document is a question bank covering Object Oriented Programming using C++. It includes questions categorized by units, focusing on principles of OOP, functions and constructors, inheritance, pointers and polymorphism, and file operations. Each unit contains 2-mark and 4-mark questions that assess understanding of key concepts and applications in C++.

Uploaded by

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

Question Bank

● Object Oriented programming using c + + ●


Unit 1. Principles of Object Oriented Programming:-
2 Marks Questions:-
 State any four object oriented languages.
 Describe use of protected access specifier used in the class.
 Differentiate between OOP and POP.**
 What is a class? Give its example.
 Explain use of scope resolution operator with example***
 Define class and object.
 State the use of cin and cout.
 List two memory management operators available in C++.
Also state its use.
 Differentiate between C and C++.
 Give the syntax of class.
 Explain the input operator in C++.
 Demonstrate the static and dynamic initialization of variable.
 Write the syntax for declaration of a class.

4 Marks Questions :-
 With suitable diagram describe structure of C++
program.****
 Describe memory allocation for objects with suitable
diagram.
 Write any four benefits of OOP.
 Write the applications of object oriented programming.***
 Describe following terms: Inheritance, data abstraction,
data. Encapsulation, dynamic binding.
 Explain user defined datatype with example.
 State and describe characteristics of object oriented
Programming.
 Describe concept of type casting using suitable example.
 Explain the access specifiers in C++.
 State the features of object oriented programming.
 State the use of scope resolution operator and
explain it with. Example.
Unit 2. Functions and Constructors:-
2 Marks Questions:-
 Write any two characteristics of destructor.
 Describe use of static data member in C++ with example.
 Write two properties of static member function.
 Describe use of static data member.
 Define constructors and it’s type.**
 State the characteristics of static member function.
 List any four properties of constructor function.

4 Marks Questions:-
 State the rules for writing destructor function.
 Explain the friend function with proper example.**
 What is parameterized constructor?
 Differentiate between contractor and destructor.***
 Describe constructor with default arguments with an
example.
 Explain the characteristics of Friend function.
 Explain overloaded constructor with suitable example.
 Compare static and non-static data members.

Unit [Link] classes using Inheritance


2 Marks Questions:-
 Write syntax to define a derived class.
 What is multilevel inheritance? Draw the diagram to
show multilevel inheritance. using classes with data
member and member function.
 Explain virtual base class with suitable example.**
 Describe derived class with example.
 State different types of visibility mode in inheritance.
 Give the syntax for constructor in derived classes.

4 Marks Questions:-
 Describe the concept of virtual base class with
suitable example.**
 What is inheritance? Give different types of
inheritance.**
 State and explain the visibility modes used in
inheritance.****
 Explain multilevel inheritance with an example.
 Illustrate the concept of virtual base class with
suitable example.

Unit [Link] and Polymorphism in C++


2 Marks Questions:-
 Describe ‘this’ pointer with an example.**
 Explain concept of pointer with example.
 Explain reference and dereference operators w.r.t.
pointer.
 Define polymorphism with it’s types.

4 Marks Questions:-
 What are the rules for virtual function?**
 Differentiate between run time and compile time
polymorphism.***
 Write any rules of operator overloading.
 State the need of virtual function in C++.
 Define pointer operator and address operator with
Example.
 State the advantages of pointer.
 State any four rules for virtual functions.
 Illustrate this pointer with example.
Unit 5. File operations
2 Marks Questions:-
 Describe meaning of following:
(i) ios : : in. (ii) ios : : out
 Give syntax and use of fclose ( ) function.**
 Write the use of ios : : in and ios : : out.
 Explain file modes used to perform file operations.
 List all stream classes used in stream operation.
 List c++ stream classes along with their function.
(any two
Classes)
 Explain ios :: app and ios :: in flags
 Define file with it’s

You might also like