Question Bank-1
Subject: Object Oriented Programming using C++
Subject Code: 23PLCS23
1. Illustrate different types of operators in C++ with suitable programming example
2. What are the advantages of bottom-up approach
3. Design a C++ program to demonstrate the use of Scope Resolution Operator
4. Design a C++ program to swap two numbers.
5. Describe Tokens-Keywords, Identifiers and Constants with examples
6. Design a C++ program to define a structure to represent Cricketers information
(name, runs, and average_score). Read and display the data corresponding to N
Cricketers in a structure array.
7. What is the value of p in the following C++ code snippet?
#include <iostream>
using namespace std;
int main()
{
Int p;
bool a = true;
bool b = false;
int x = 10;
int y = 5;
p = ((x | y) + (a + b));
cout <<p;
return 0;
}
8. Demonstrate class and objects with an example.
9. Appraise the need for C++.
10. Illustrate expressions and their types in C++ with examples.
11. List the major issues facing the software Industry/Software Crisis
12. Design a C++ program to calculate sum of n natural numbers
13. With a neat diagram show how the objects communicate with one another in
functions/ Explain methods and messages with example
14. Describe the concepts of object oriented programming with examples / Explain
class, object, inheritance, polymorphism, encapsulation, abstraction, message
passing, data binding with examples
15. How does object oriented approach differ from procedure oriented approach/
Differentiate between C and C++.
16. What is the difference between class and struct. Write a program to illustrate the
differences.
17. Design a C++ Program to demonstrate Special Assignment expressions.
18. Design a C++ program to display name, roll_no, and grade of N students who
have appeared in the examination. Declare a class with name, roll_no, and grade
as members. Create an array of class objects. Read and display contents of the
array.
19. Write a C++ program to declare a structure. Initialize and display contents of
member variables.
20. Design a class Car with brand and year as its data members, create two functions
input() and display() as its member functions. Read and display the data
corresponding to a car.
21. What is law of abstraction. How does it help the user of the objects. Give an example of
your choice to illustrate the need for abstraction.