“Write a function to find out common alphabets between two arrays.
RPSC Previous years C++ Questions
“Write a function to find out common alphabets between two arrays. Also write Test Cases, Test Data & Test Results for validating your program. Length of array is not fixed and array may contain other data type also.”
Example: [2, *, @, 5, %, $, a], [a, !, 5, $, +, =, 9] from these array, a and 5 are common elements.
“Write a function for finding out highest and lowest marks obtained by a student from an array contained student name and marks”.
For Example :
GetHighestLowestMarks{Student{n}, Marks{n}} returns an array contain student name and marks.
“Write a function for finding out the occurrences of repeated word from a sentence. This function would return an array of duplicate words.”
For Example: “India is my country. I love my country very much. I love its varied heritage.” Here the repeated words are :
I – occur – 2 times
Love – occur – 2 times
Country – occur – 2 times
Write a function for replacing all occurrences of a specified string value with another value.
For Example : “ I love chatting with friends.”
Replace : “friends”, “girls”. It should return: “ I love chatting with girls”.
Write function for removing duplicate elements from a given array and sort that array. (Without using inbuilt functions).
For Example:
Array = {2, 1, 3, 2, 4, 4, 6, 5, 6}
Output = {1, 2, 3, 4, 5, 6}
tring value with another value.
For Example : “ I love chatting with friends.”
Replace : “friends”, “girls”. It should return: “ I love chatting with girls”.
Write function for removing duplicate elements from a given array and sort that array. (Without using inbuilt functions).
For Example:
Array = {2, 1, 3, 2, 4, 4, 6, 5, 6}
Output = {1, 2, 3, 4, 5, 6}
on for finding out highest and lowest marks obtained by a student from an array contained student name and marks”.
For Example :
GetHighestLowestMarks{Student{n}, Marks{n}} returns an array contain student name and marks.
“Write a…





