Short Questions (2 Marks)
1. What is a variable in C++? Give an example.
2. What are conditional statements in C++? Give an example.
3. Define a class and an object with an example.
4. Write is an inheritance with and example.
5. What is a constructor? Give an example.
6. What is the purpose of a static data member?
7. What is the purpose of the protected access specifier in inheritance?
8. Explain the concept of association in object-oriented programming.
9. Differentiate between compile-time and run-time polymorphism.
10. Define abstract class with an example.
11. What is a data type in C++ with example.
12. What is an operator? Give an example.
13. What is encapsulation in OOP?
14. Define polymorphism with a real-life example.
15. What is a destructor? Give an example
16. What is meant by constant member function?
17. Mention any two advantages of inheritance.
18. What is an inner class in C++?
19. What is a virtual function? Give an example
20. What is an interface in object-oriented programming?
21. What is variable ?
22. What is arithmetic operator ?
23. What is the use of break keyword ?
24. Write the purpose of using implicit function in C++ with example .
25. Name two entry controlled loop with reason and example.
26. What is increment and decrement operator ?
27. How to declare and initialize a variable in C++ ?
28. What is the use of Continue keyword ?
29. Write the difference bet compiler and interpreter .
30. What is header files write 2 examples .
LONG Questions
1. Explain about the different type of looping statement with valid example & syntax.
2. Explain the different types of datatypes with clear syntax & example.
3. Write a program to reverse a number in C++.
4. Explain different type of operator briefly .
5. Explain about the different type of operator with valid example.
6. Explain the different conditional statement with clear example.
7. Define explicit function . Write a function in C++ to add all the odd number from 1 to n.
8. Write a program to find whether a given number is palindrome or not .
i. (Hint : if the number is 121 then after reverse the number , the reverse
number is equal to the original number)
9. Explain different types of control structures in C++ with examples.
10. Write the program to swap two numbers using without third variable in C++. Differentiate
between local, const, and static variables in C++.
11. C++ program using control structures to check whether a number is prime or not. What are
the different types of inheritance in C++? Illustrate with diagrams.
12. What is function overloading? Write a program to demonstrate it.
13. Write a short note on inline functions with example.
14. Differentiate between function overloading and operator overloading.
15. Define a class and object in C++.
16. Explain the concept of static data members and static member functions with example.
17. Write a C++ program to demonstrate array of objects.
18. What is meant by encapsulating into an object?
19. Write the syntax and example of declaring and defining a class in C++.
20. Explain the need and advantages of constructors in C++.
21. Discuss how member accessibility changes when inheritance is public, private, and
protected.
22. What are inner classes? Write a program to demonstrate their usage.
23. Write a C++ program to illustrate single and multilevel inheritance.
24. Explain how member access specifiers affect inheritance.
25. Explain the concept of polymorphism and differentiate between compile-time and run-time
polymorphism.
26. Write a C++ program to find the greatest among three numbers.
27. Explain the importance of using try, catch, and throw keywords in error handling.
28. What are streams in C++? Explain input and output streams with examples.
29. Discuss the role of operator in C++ and explain their types with examples.
30. Write a C++ program to find the sum of digits of a given number.
31. Explain the types of C++ tokens with suitable examples.
32. Write the program to swap two numbers using third variable in C++.
33. Explain the concept of classes and objects with a suitable program.
34. Explain different types of parameters passing in functions with examples.
35. Explain compile-time and run-time polymorphism with examples.
36. Explain encapsulation and abstraction with suitable examples.
37. What is a constructor? List its characteristics.
38. Explain different types of constructors with suitable examples.
39. Write a C++ program to demonstrate params constructor.
40. Define encapsulation and explain how it is achieved in C++.
41. Write a detailed note on Friend Function. Discuss its syntax, advantages, and disadvantages.
42. Explain the concept of inheritance in C++ with a suitable program example.
43. Explain the role of pointers and dynamic memory allocation in class inheritance.
44. Write a C++ program to illustrate single and multiple inheritance.
45. State two advantages of using inheritance in software design.
46. Differentiate between abstract class and interface in C++.
47. Write a C++ program to check whether a given number is a palindrome.
48. Explain the concept of exception handling in C++ with syntax and example.
49. Differentiate between text files and binary files.
50. Mention two advantages of using streams in C++
Short Notes
1. Keywords
2. Looping Statements
3. Array of Objects.
4. Private, Protected, Public
5. Pointers
6. Interface
7. Tokens
8. Switch–Case in C++
9. Jump Statement
10. Virtual Class
11. Hierarchy of Stream Classes
12. Abstract classes
13. Datatype
14. Tokens
15. Functions
16. Do-While loop
17. Ternary operator
18. Structure of simple C++ program
19. Switch – statement
20. While loop