Mentors - We Change The Way You Think
  • Login
  • Sign Up
  • Class 10
    • Sample Papers
    • Previous Years
  • Class 12
    • Sample Papers
    • Previous Years
    • ISC Computer Practical
    • ISC Computer Guess
    • Viva
    • Computer Project
  • Notes
  • QA
  • Misc
    • Trivia
    • Quotes
    • Riddles
  • English Language
  • Computer Science
  • Physics
  • Chemistry
  • English Literature
Strings Advanced Questions

Category: Strings Advanced


  • Write a program to print each word of a string in reverse order.
  • Write a program to check if a word entered by the user is palindrome or not. A word which when reversed is the same as the original word is known as palindrome. Ex:- MOM, DAD, MADAM etc.
  • Write a program to convert each lowercase letter of a string to uppercase and vice-versa. Ex:- JavA is FuN becomes jAVa IS fUn.
  • Write a program to find the frequency of each letter in a sentence entered by the user.
  • Write a program to enter a paragraph from the user and print each sentence on a new line without vowels.
  • Write a program to enter a main string and a substring from the user. Find how many times the substring occurs in the main string. If substring does not occur even once displaythe message, "Substring
  • Write a program to print the frequency of each word in a sentence entered by the user.
  • Write a program to store names and marks of 50 students and display the names and marks according to the merit.
  • Write a program to remove the occurrence of consecutively repeating characters in a string. Ex:- The string, "He hit the balloon 3333 times" becomes "He hit the balon 3 times".
  • Write a program to print a string in reverse order in such a way that individual words are not reversed. Ex:- "Java is robust" becomes "robust is Java".

Share with others

 

©2022 Mentors. All Rights Reserved. Privacy Policy and Terms of Use