What is the chopping of string?

90. What is the chopping of string -

  1. Divide the string into two equal halves
  2. Strip off new line characters
  3. Extract substring from a given index
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.