OOPs using C++ Assignment 1
OOPs using C++ Assignment 1
8. Write a C++ program to demonstrate the use of Pointers with Arrays. Explain the
working.
9. Explain the use of cin and cout in C++ with an example.
10. What are the differences between a normal function and an inline function in C++?
11. Write a short note on the importance of Encapsulation and Abstraction in OOP.
Section B
Attempt all questions. (Answer Limit – 500 to 600 words)
Q. No. Question
12. Differentiate between Procedural Languages & Object Oriented Languages with the
support of program examples.
13. Define Classes and Objects. How you can create and access a class through objects?
Support your answer with program example. Explain the different access specifier
14. that are used
Describe in a class
Function with suitable
Prototyping, example.
Definition, and Function Call in C++ .Explain different
ways of parameter passing.
15. How does OOP help in solving real-world problems? Explain with a suitable
example.