NSCT – Strings & Text Processing MCQs

20 min Score: 0 Attempted: 0/20 Subscribe
1. What is a string in programming?





2. Which data type is used to store text?





3. Which of the following is used to combine two strings?





4. Which operation is used to find the length of a string?





5. Strings are usually:





6. Which of the following allows extracting a part of a string?





7. What is it called when all letters of a string are converted to uppercase?





8. What is it called when all letters of a string are converted to lowercase?





9. Which operation removes spaces from the beginning and end of a string?





10. Which operation splits a string into parts based on a separator?





11. Which operation joins multiple strings into one using a separator?





12. How are individual characters in a string accessed?





13. Which operator is commonly used to combine strings?





14. Which of the following can search for a specific substring in a string?





15. Which operation replaces a part of a string with another string?





16. Which method checks if a string starts with a specific substring?





17. Which method checks if a string ends with a specific substring?





18. Which of the following counts the occurrences of a character or substring in a string?





19. Strings in most programming languages are:





20. Text processing is mainly used to:





All Copyrights Reserved 2025 Reserved by T4Tutorials