The total time to be spent on the Planning and the Examination Session is Three hours.
After completing the Planning Session, the candidate may begin with the Examination Session. A maximum of 90 minutes is permitted to begin the Examination Session.
However, if candidates finish earlier, they are to be permitted to begin the Examination Session.
As it is a practical examination the candidate is expected to do the following:
1. Write an algorithm for the selected problem. 
(Algorithm should be expressed clearly using any standard scheme such as pseudo code or in steps which are simple enough to be obviously computable.)
2. Write a program in JAVA language. The program should follow the algorithm and should be logically and syntactically correct. 
3. Document the program using mnemonic names / comments, identifying and clearly describing the choice of data types and meaning of variables. 
4. Code / Type the program on the computer and get a printout (hard copy). Typically, this should be a program that compiles and runs correctly. 
5. Test run the program on the computer using the given sample data and get a printout of the output in the format specified in the problem. 
6. Viva-Voce on the Selected Problem. 
A palindrome is a word that may be read the same
way in either direction. Accept a sentence in UPPER CASE which is terminated by
either “.”, “?”, or “!”. Each word of the
sentence is separated by a single blank space.
Perform the following taks:
(a) display the count of palindromic words in the sentence.
(b) Display the palindromic words in the sentence.
Example of palindromic words:
MADAM, ARORA, NOON
Test your program with the sample data and some random data:
INPUT : MOM AND DAD ARE COMING AT NOON
OUTPUT : MOM DAD NOON
NUMBER OF PALINDROMIC WORDS : 3
INPUT : HOW ARE YOU?
OUTPUT : NO PALINDROMIC WORDS
A positive whole number ‘n’ that has ‘d’ number of digits is squared and split into two pieces, a right-hand piece that has ‘d’ digits and a left-hand piece that has remaining ‘d’ or ‘d-1’ digits. If the sum of the two pieces is equal to the number, then ‘n’ is a Kaprekar number. The first few Kaprekar numbers are: 9, 45, 297 ……..
92 = 81, right-hand piece of 81 = 1 and left hand piece of 81 = 8
Sum = 1 + 8 = 9, i.e. equal to the number.
452 = 2025, right-hand piece of 2025 = 25 and left hand piece of 2025 = 20
Sum = 25 + 20 = 45, i.e. equal to the number.
2972 = 88209, right-hand piece of 88209 = 209 and left hand piece of 88209 = 88
Sum = 209 + 88 = 297, i.e. equal to the number.
Given the two positive integers p and q, where p < q, write a program to determine how many Kaprekar numbers are there in the range between p and q (both inclusive) and output them.
The input contains two positive integers p and q. Assume p < 5000 and q < 5000. You are to output the number of Kaprekar numbers in the specified range along with their values in the format specified below:
p = 1
q = 1000
THE KAPREKAR NUMBERS ARE:-
1, 9, 45, 55, 99, 297, 703, 999
FREQUENCY OF KAPREKAR NUMBERS IS: 8
Input a paragraph containing ‘n’ number of sentences where (1 = < n < 4). The words are to be separated with a single blank space and are in UPPERCASE. A sentence may be terminated either with a full stop ‘.’ or a question mark ‘?’ only. Any other character may be ignored. Perform the following operations:
i. Accept the number of sentences. If the number of sentences exceeds the limit, an appropriate error message must be displayed.
ii. Find the number of words in the whole paragraph
iii. Display the words in ascending order of their frequency. Words with same frequency may appear in any order.
Enter number of sentences.
TO BE OR NOT TO BE.
Total number of words: 6
Enter number of sentences
THIS IS A STRING PROGRAM.IS THIS EASY? YES,IT IS.
Total number of words: 11
Enter number of sentences
OUTPUT: Invalid entry