Computer Application Semester 2 Sample Paper 3
Computer Application Semester 2 Sample Paper 3
Question 2
Define a class to store N integer values into an array. Create another array to contain the corresponding
ASCII characters of all the elements of the first array. Also print the characters which are alphabets of the
English letters,
Question 3
Define a class to input a sentence and print the number of consonants found in the longest word of the
sentence.
Example: Health is the most important thing in life.
Output: 6
Question 4
Define a class to input a string and check if the string has unique letters.
Question 5
Define a class to store N integers into an array, find the largest and shift it to the end of the array.
Example: 15, 16, 12, 10, 14, 18, 17, 11, 13
Output: 15, 16, 12, 10, 14, 17, 11, 13, 18