1
Opps using c++ SECTION B Questions
1.Explain the basic concepts of OOPS.
2.Explain the structure of C++ program.
3.Explain the data types in C++.
4.Write a short note on control structures.
5.Explain recursion with an example.
6.Explain friend function with example.
7.Explain the types of constructors.
8.Write a C++ program sort elements using bubble sort.
9.Explain function overloading with example.
10.Explain virtual function with an example.
11.Explain any three types of Inheritance.
12.Explain Polymorphism with an example.
13.Explain exception handling in C++.
14.Write a C++ program to calculate area and circumference of circle using
inline function.
15.Write short note on storage classes with example.
16.Write short note on Pointers with example.
17. Explain the characteristics of oops.
18. Describe any three Manipulatqrs.
19.Explain function overloading with example.
20 Write a program to perform addition of two matrices using operator
overloading.
21 a) What are access specifiers used for ? Explain the concept of protected
access specifier.
2
b) Write a note on class templates.
22. a) What are default arguments ? How they are passed to functions ?
b) Write a program to show returning current object using 'this" pointer ?
23. a) Explain different types of polymorphism ?
b) Write a program to swap two numbers using friend function.
24. Explain different types of inheritances with example.
25. a) Explain inline function and illustrate the same with an example ?
b) Write a program to calculate area and circumference of circle using inline
function.
26. Write short note on :
a) Data Hiding
b) Storage classes
c) Seekg ( ) and seekp ( ) functions
d) Virtual Base class.
27. Explain any five basic concepts of Object Oriented Programming
(OOP).
28. What is an inline function ? Write an inline function to find absolute value of a
number.
29. Briefly explain function with default arguments.
30. What is a friend function ? Explain with suitable example.
31. Give the general form of a class and illustrate access specifiers.
32. Define constructor. Explain any three different types of constructors.
33. Define polymorphism. Discuss different types of polymorphism.
34. Write a C++ program to add two complex numbers by overloading '+'
operator.
3
35. Explain different types of inheritance with suitable examples.
36. a) Define pure virtual function. Give an example.
b) What is exception handling ? Explain the different blocks in exception
handling.
37. a) Explain function template with its general form.
b) Write a function template to sort a set of elements.
38. Write a short note for the following :
a)Input and output streams.
b)fstream class.
c) File opening modes.
39. a) Explain basic concepts of OOPs in detail.
b) Illustrate the use of function overloading with example.
40. a) What are inline functions ? Explain.
b) Demonstrate the usage of classes and objects with any example.
41. a) Explain friend function with example.
b) Describe types Of constructors in detail.
42. a) Demonstrate the usage of unary operator overloading with an example.
b) Explain data conversions in detail.
43. Explain various types of inheritances with suitable examples.
44. a) Write about virtual functions in C++ with example.
b) Explain function templates in C++ with suitable examples.
45. a) Demonstrate the use of try and catch blocks in C++.
b) Explain the unformatted I/O operations of streams in C++.
46. a) Explain file pointers and file modes.
b) Write a program to prepare shopping lists using arrays of objects.
4
47) a) What are access specifiers used for ? Explain the concept of protected
access specifier.
b) Explain the concept of static members of a class with examples.
48) a) List the characteristics of a constructor.
b) Write a C++ program to illustrate the concept of constructor overloading.
49) a) What are the rules followed to overload an operator in C++ ?
b) Write a C++ program to explain the concept of unary operator overloading.
50) a) Explain different types of inheritance with examples.
b) Explain in detail the types of polymorphism in C++.
51) a) Write a C++ program to sort elements using templates.
b) What is exception handling ? Exception how does it differ from error ?
Explain the different blocks in exception handling mechanism.
20) a) Explain seekg() and tellg() functions.
b) Write a program to show returning current object accessing member data
of current object and returning values of object using this pointer