Home »
MCQs »
Scala MCQs
What is the chopping of string?
90. What is the chopping of string -
- Divide the string into two equal halves
- Strip off new line characters
- Extract substring from a given index
- None of these
Answer: B) Strip off new line characters
Explanation:
The string chomp(or chop) function in Scala is used to chop off the end of line characters.