String Based X 2019
String Based X 2019
(1 hour) 60 marks
THEORY: 60 marks//string
1. Wap to accept a string(name) print the name as (surname first followed by first
name and last name if any).
2. Wap to accept a string and print number of vowels,uppercase letter,lowercase letter
digits and no of words .
3. Wap to accept a string as”COMPUTER IS FUN” PRINT”FUN IS COMPUTER
4. Wap to accept a string and and a word .print frequency of the word in the string.The
string is without spaces.
5. Wap to print each word of the string in encrypted manner if the user gives the no of
moves to which each character is encrypted?