Multiple choice technology mainframe

which function is used to clear leading or trailing spaces or infact any other characters?

  1. Strip()

  2. trun()

  3. remove()

  4. space()

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Strip() removes leading and trailing characters (typically spaces) from a string. This is similar to TRIM in standard SQL. The question has grammatical errors ('which' should be capitalized, 'infact' should be 'in fact').