SEP C++ Question Bank
SEP C++ Question Bank
Unit 1:
1. What is software crisis?
2. What are the qualities for critical evaluation of a software? (correctness,
Maintainability, reusability, openness and interoperability, portability, Security,
Integrity and user friendly)
3. Define object oriented programming (OOP).
4. Explain the characteristics of OOP.
5. Explain the benefits/advantages of OOP
6. Differentiate between Procedure Oriented Programming (POP) and Object
Oriented Programming (OOP).
7. List the concepts of OOP.
8. Define Object, Class, Abstraction, Encapsulation, Inheritance, Polymorphism,
Dynamic Binding and Message Passing with an example for each.
9. Explain the types of inheritance.
10. Explain the types of Polymorphism.
11. With an example for each define single level, multilevel, multiple, hierarchical
and hybrid inheritance.
12. What is other name for static and dynamic polymorphism.
13. What are virtual functions?
14. What is static and dynamic binding?
15. List the applications of OOP.
16. Differentiate between Abstraction and Encapsulation.
17. List the example for object oriented languages.
18. Who invented C++?
19. What are the other name for C++?
20. What are the features of CPP?
21. Explain the basic structure of CPP with an example.
22. What are enumerated data types? Explain with an example enumerator.
23. What is the keyword used for enumerator?
24. What is reference variable?
25. What are manipulators?
26. Explain with an example about endl, setw() and setprecision().
27. What are basic input and output operators of CPP?
28. What are the cascading operator for input and output?
29. What are streams in CPP?
30. What are type conversions? Explain its types.
31. What is call by value and call by reference?
32. What are inline function? Explain with an example.
33. What are the conditions to declare inline functions?
34. What are the advantages and disadvantages of inline functions?
35. What are default arguments?
36. What are legal and illegal way of mentioning default arguments?
37. What are function overloading?
38. When not to overload a function?
39. Explain function overloading with an example.
Unit 2:
1. Differentiate between C and C++.
2. Define class with an example.
3. Define object with an example.
4. What are data members?
5. What are member functions?
6. What is other name for class?
7. How many ways an object is created? Give an example for each.
8. Explain how to create class and access the class members.
9. Explain how memory is allocated to objects.
10. What are static data members?
11. How to access static data members?
12. What are static member functions?
13. How to access static member functions?
14. Write a program to use the static data members and member functions.
15. What are constructors?
16. What are the special about constructor?
17. What are the features of Constructor and Destructor?
18. Explain the types of constructor with an example.
19. Explain with an example about destructor.
20. What is dynamic constructor?
Unit 3:
1. Define operator overloading. Explain types of operator overloading.
2. Which are the operators that cannot be overloaded?
3. When to use operator overloading?
4. Write the syntax to overload the operator with an example.
5. What are the rules to overload operators?
6. Which are the operators that cannot be overloaded under friend function?
7. Write a program to overload unary operator.
8. Write a program to overload binary operator.
9. Write a program to overload comparison operator.
10. Write a program to overload arithmetic assignment operator.
11. How to overload operator using friend functions with an example?
12. What is type conversion? Explain the different type conversions.
13. What is friend function? what are the properties of friend function?
14. What are incompatible type conversions?
15. How to convert from basic to class type with an example?
16. How to convert from class to basic type with an example?
17. How to convert from class to class type with an example?
18. What are the ways to convert from class to class type?
Unit 4:
1. Define inheritance. List the types of inheritance.
2. With diagram explain the types of inheritance.
3. What are the terminologies used in inheritance?
4. What are the advantages of inheritance?
5. Write the syntax to inherit a class.
6. What is inheritance visibility mode?
7. What is public, private and protected access specifiers?
8. What are the significance of visibility modes/access specifiers from basic
type to derived class?
9. Explain Single inheritance with an example.
10. Explain Multiple inheritance with an example.
11. What is the ambiguity with multiple inheritance?
12. How to resolve the ambiguity with multiple inheritance?
13. Explain Multilevel inheritance with an example.
14. Explain Hierarchical inheritance with an example.
15. Explain Hybrid inheritance with an example.
Unit 5:
1. Define polymorphism.
2. Mention the types of polymorphism.
3. What is the other names for compile time polymorphism?
4. What is the other names for run time polymorphism?
5. What is function overriding? Demonstrate to implement overriding with
an example.
6. What are virtual function? Write the syntax for virtual functions.
7. Differentiate between function overloading and function overriding.
8. What is pointer object? Explain pointer object syntax with an example.
9. What is this pointer in C++?
10. Write a program to implement this pointer.
11. Define pure virtual function.
12. What is abstract function and abstract class?
13. Explain pure virtual function with an example.
14. What is file? And what are the types of files in C++?
15. Differentiate between text file and binary file.
16. What are the methods used with files?
17. What are the different files modes?
18. What is template and types of templates? Write the syntax for templates.
19. Explain function templates/Generic functions with an example.
20. Explain class templates /Generic class with an example.
21. What are the advantages and disadvantages of templates?
22. What are exceptions?
23. What are the keywords in exception?
24. Write the general form of exception.
25. Write a program to implement exception handling.
26. Write a program to implement exception handling with multiple catch.
27. Write a program to implement rethrowing exception.
28. Write a program to implement restricting exception.