C++ IMPORTANT QUESTIONS
C++ IMPORTANT QUESTIONS
Unit-1
1. Differentiate procedure oriented and object oriented paradigms.
7. List out various control loops in C++. Give syntax with an example.
Unit-2
1. Write the structure of classes in C++ with an example program.
2. What are class members? Explain how to access class members with various
access specifiers.
4. Discuss in detail with example program static member variable and static
member function.
Unit-3
1) Describe the use of public, private, and protected access specifiers with
respect to inheritance. Provide an example.
Unit-4
1) What is polymorphism? How virtual functions can be used to implement the
runtime polymorphism? Explain with the help of example.
Unit-5
1) Define class templates. Discuss the need for templates?
5) Explain what Containers are and discuss the importance with example.