SAGE University, Indore
Institute Name: Institute of Computer Application
Program: Master of Computer Application (MCA) Semester: I
Object Oriented Course
Course Name CAPDSOOP005
Programming using C++ Code
list of Practical questions
1. Read character array as string using cin in C++.
2. C++ program to demonstrate use of Resolution Operator(SRO), Use global variable in local scope.
3. C++ program to demonstrate use of reference variable.
4. C++ program to demonstrate Inline Function.
5. C++ program to demonstrate Default Argument.
6. C++ program to demonstrate methods of passing in function.
7. C++ program to demonstrate function overloading.
8. C++ program to read string using cin.getline().
9. C++ program to generate random numbers.
10. Print Reverse Triangle Bridge Pattern for Characters in C++.
11. C++ | Create an object of a class and access class attributes
12. C++ | Create multiple objects of a class
13. C++ | Define a class method outside the class definition
14. C++ | Assign values to the private data members without using constructor
15. C++ | Create an empty class (a class without data members and member functions)
16. C++ | Create a class with setter and getter methods
17. C++ program to create a class to read and add two distance.
18. C++ program to create a class for student to get and print details of N students. / C++ program to
demonstrate example of array of objects.
19. C++ program to create class to read time in seconds and convert into time in (HH:MM:SS) format.
20. C++ program to create class to read time in HH:MM:SS format and display into seconds.
21. C++ program to demonstrate example of friend function with class.
22. Count the created objects using static member function in C++.Ad by Value impression
23. Create an object of a class inside another class declaration in C++.
24. Example of private member function in C++.
25. Const Member Functions in C++.
26. Create a class Point having X and Y Axis with getter and setter functions in C++.
27. Access the address of an object using 'this' pointer in C++.
28. Create a class with public data members only in C++
29. C++ program Input list of candidates and find winner of the Election based on received votes
30. C++ program to demonstrate example of simple inheritance.
31. C++ program to demonstrate example of private simple inheritance.
32. C++ program to read and print student’s information using two classes and simple inheritance.
33. C++ program to demonstrate example of multilevel inheritance.
34. C++ program to read and print employee information using multiple inheritance.
35. C++ program to demonstrate example of hierarchical inheritance to get square and cube of a number.
36. C++ program to read and print employee information with department and pf information
using hierarchical inheritance.
Note: Practicals should be handwritten( not printed or typed) with output (on blank side just in front of the
program) in practical file and must be submitted on or before 15/12/2023.