UNIT-1
Q1. What is the need for Object-Oriented Programming (OOP)?
Q2. Explain the differences between the procedural and object-oriented approach.
Q3. What are the main characteristics of OOP?
Q4.Define the following terms with examples:
a) Object
b) Class
c) Inheritance
d) Polymorphism
Q5. What is reusability in OOP? Give an example.
Q6. What are the advantages of OOP over structured programming?
Q7. What is the relationship between C and C++?
Q8.What are preprocessor directives? Give examples.
Q9. Explain the use of cout and cin with syntax and examples.
Q10. What is the purpose of the setw manipulator?
UNIT-2
Q11.Explain the difference between for, while, and do-while loops.
Q12.What is the difference between if and switch statements?
Q13. Explain the use of break, continue, and goto statements.
Q14.What is a structure? How are structure members accessed?
Q15.What is an enumerated data type? Give an example.
Q16.Explain function overloading with an example.
Q17.What is the purpose of the scope resolution operator (::)?
Q18.Explain reference arguments and their advantages.
Q19.What are storage classes in C++? Explain their types.
UNIT - 3
Q20. Define a class and an object in C++. Give examples.
Q21. Explain how constructors are defined and used.
Q22. How can objects be passed to and returned from functions?
Q23. Differentiate between C++ objects as physical objects and data types.
Q24.Explain how arrays are declared and initialized.
Q25.What is a multidimensional array? Give a suitable example.
Q26.What is an array of objects? Explain with code.
Q27.Explain the difference between C-style strings and C++ string class.
Q28.What are the advantages of using the Standard C++ String class?
UNIT- 4
Q29.What is operator overloading? What are its limitations?
Q30.Explain how unary operators can be overloaded.
Q31.Explain the syntax and use of the operator keyword.
Q32.What is function overriding? How does it differ from overloading?
Q33. Explain data conversion in C++.
Q34.What are the pitfalls of operator overloading?
Q35. Define base class and derived class.
Q36. Differentiate between public and private inheritance.
Q37.What is multiple inheritance? What is ambiguity in multiple inheritance?
Q38. Explain the concept of aggregation (class within class).
Comments
Post a Comment
Thank you for comment.