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 Basic Questions

Category: Strings Basic


  • Write a program to enter a string and display the number of words and blank spaces in it.
  • Write a program to enter a string and print the number of vowels in it.
  • Write a program to print the number of consonants in a string.
  • Write a program to print the number of uppercase and lowercase letters in a string separately.
  • Write a program to print the no of times letter 'K' appears in a string.
  • Write a program to print the digits present in a string, if any.
  • Write a program to reverse a string and print.
  • Write a program to print the words of a string that starts with an uppercase letter.
  • Write a program to print each word of a string on a new line.
  • Write a program to find the number of sentences in a paragraph entered by the user. A sentence is terminated by either by ' . ' , ' ? ' or ' ! '.

Share with others

 

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