Multiple choice technology

TrimF(" String with whitespace ") = ?

  1. " String with whitespace "

  2. Stringwithwhitespace

  3. "String with whitespace "

  4. " String with whitespace"

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

TrimF removes leading and trailing whitespace from strings but preserves internal whitespace. The input has 3 leading spaces and 2 trailing spaces. After trimming, the result is "String with whitespace " with internal double and triple spaces intact. Option B incorrectly removes all whitespace, while A and D retain leading/trailing spaces.