PROGRAMMING IN C++ IMPORTANT QUESTIONS
UNIT - I
1. Explain different operators and data types in C++.
2. Write in detail about the different ways of passing arguments to functions with an example
program.
3. Write about Inline member functions with syntax and program.
4. Explain Control statements with syntax and example.
5. Explain the following:(i) Function (ii) Function prototype (iii) Default arguments.
6. Explain the following: i) object-oriented programming concepts. (OOPs Concept) (ii) OOP
languages (iii) OOP’s Applications.
7. What is Token? Explain the types of tokens in C++.
8. a) Explain the Structure of "C++ Program? with an example. b) Define Array. Discuss on 1-
Dimenstional Arrays.
UNIT – II
1. Explain the constructors and destructors. Explain different types of constructors with
suitable examples.
2. Explain the concept of class hierarchies with suitable example program.
3. Explain operator overloading with syntax and example program.
4. Define class and Object? How to create a class and initialize object? Explain with a program.
5. Explain about Friend Class and friend function? Write a Program to find biggest of TWO
numbers by using friend class.
6. How an array of objects handles in C++? B) Write a program to add two matrices using
Operator Overloading.
UNIT – III
1. Explain Formatted and Unformatted I/O operations with an example program.
2. Define Inheritance. Explain types of Inheritance with an example
3. a) Explain stream classes. b) Explain Abstract Base classes. Write a program to implement a
default Argument using class and object.
4. Write a program to implement constructors declared in base class and destructors declared
in derived class using Inheritance concept.
5. Write a program to demonstrate static polymorphism using method overloading.
6. a) Explain virtual member functions. b) Explain pure virtual functions. (or) What is
polymorphism? How to implement it in C++. (or) Define virtual function. What are the
features of virtual functions explain with suitable program.
UNIT – IV
1. Explain in detail Exception handling with syntax and an example program.
2. Explain the following: (i) Multiple Exception (ii) Re-throwing Exception.
3. a) Explain Function Template and Class Template with an example program. b) Explain
overloading function template with syntax and example program.