OOP Question Bank For Class Test

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Question Bank for Class Test: 01

Course: Object Oriented Programming using C++ Class:CO3I


A/B/C
Questions:
1. State the use of cin and cout
OR
Describe input – output operator in c++ with example.
2. State the syntax to create class and object.
3. Define Constructor and give its Syntax.
4. Define Destructor and give its syntax.
5. Write characteristics of constructor.
6. List characteristics of destructor
7. Enlist characteristics of Object-Oriented Programming.
8. Differentiate between OOP and POP.
9. Differentiate between Constructor and Destructor
10.List characteristics of static data members and static members functions
11.State any two access specifier with example.
12.Describe the use of scope resolution operator.
13.Write the difference between structure and class
14.Define i) Data Abstraction ii) Inheritance.
15.Explain Basic Concepts of OOP(ALL 8)
16.Give output for the following C++ code:

17.Calculate size of the object E1 defined in following class:


class Employee {
char E_name[15]; int Emp_id; int salary;
}; Employee E1;
18.Explain how memory is created when multiple objects of a class created.
19.Describe Default Constructor with example.
20.Explain Parameterized Constructor with example.
21.Explain Copy Constructor with example.
22.Describe the concept of constructor overloading.
23.Write a program to define a class Book having data members as authorName
and bookPrice. Accept and display data for two book objects and display
details of book having higher price.
24.Write a C++ program to declare class mobile having data members as price
and model number. Accept data for 5 objects and display details of mobile
having price greater than 12000.
25.Develop a C++ code to print sum of array elements.
26.What is simple constructor? Explain with suitable example.
27.Explain the use of scope resolution operator with example.
28.What is Copy constructor? Explain with suitable example.
29.Explain Structure in C++ with suitable example.
30.Explain Structure of C++ program.

You might also like