C++ using OBJECT ORIENTED PROGRAMMING - Topics
C++ Using OBJECT ORIENTED PROGRAMMING - Practice Problems
C++ Using OBJECT ORIENTED PROGRAMMING - Practice Problems
1. Program to Check Anagram
Explanation -
Two Strings are called the anagram if they contain the same characters. However, the order or sequence of the characters can be different.
2. Program to Swapping Pair of Characters
Explanation -
Enter the string from user and enter the characters that you want to swap with one another
3. Program to Check if a String contains only digits?
4. Program to perform Deep Copy for String?
5. Program to remove all occurrences of a given character from input String?
6. Program to Add Characters to a String
7. Program to check whether a string is a Palindrome
8. Program to Convert Enum to String
9. Program to count number of words in a String?
10. Program to count the total number of characters in a string
11. Program to count the total number of punctuation characters exists in a String
12. Program to count the total number of vowels and consonants in a string
13. Program to determine whether a given string is palindrome
14. Program to determine whether one string is a rotation of another
15. Program to divide a string in 'N' equal parts.
16. Program to find all subsets of a string
17. Program to find all the permutations of a string
18. Program to find maximum and minimum occurring character in a string
19. Program to find Reverse of the string
20. Program to find the duplicate characters in a string
21. Program to find the duplicate words in a string
22. Program to find the frequency of characters
23. Program to find the largest and smallest word in a string
24. Program to find the longest repeating sequence in a string
25. Program to find the most repeated word in a text file
26. Program to find the number of the words in the given text file
27. Program to Get a Character From the Given String
28. Program to Insert a string into another string
29. Program to Print a New Line in String (Each word in newline)
30. Program to Print even length words
31. Program to print smallest and biggest possible palindrome word in a given string
32. Program to remove all the white spaces from a string
33. Program to replace lower-case characters with upper-case and vice-versa
34. Program to replace the spaces of a string with a specific character
35. Program to separate the Individual Characters from a String
36. Program to Splitting into a number of sub-strings
37. Program to swap two string variables without using third or temp variable.
38. Read two String user input and check if first contains second?
39. Reverse String Word by Word
40. Write a program to check if two Strings are created with same characters?
41. Write a program to find out first non repeated character from input String?
42. Write a C++ method to count all words in a string
43. Write a C++ method to count all vowels in a string
44. Write a C++ Program to Sort Names in an Alphabetical Order
45. Write a C++ method to count all the words in a string.
46. Write a C++ method to compute the future investment value at a given interest rate for a specified number of years.
47. Write a C++ method to print characters between two characters (i.e. A to P).
48. Write a C++ method to check whether a string is a valid password.
49. Write a C++ method to display the current date and time.
50. Write a C++ method that accepts three integers and returns true if one is the middle point between the other two integers, otherwise false
Expand Your Horizons with Our Free YouTube Courses
Our comprehensive YouTube courses cover a wide range of computer science and IT subjects. Each course is carefully crafted to provide you with a solid foundation and a deeper understanding of the topic. Explore our playlist of free courses and learn at your own pace. Stay ahead of the curve and boost your knowledge with our engaging video lectures.