Multiple choice technology programming languages

Dim strQuestion,strCount
strQuestion=" abc " 
strQuestion=Trim(strQuestion) 
strCount=Len(strQuestion)

  1. strCount=7

  2. strCount=9

  3. strCount=3

  4. strCount=0

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

The Trim function removes leading and trailing spaces from strings. Starting with ' abc ' (which has 9 characters: space, a, b, c, space), Trim removes both spaces, leaving 'abc' which has 3 characters. Len(strQuestion) then returns 3.