Multiple choice technology mainframe

What will be the result of Result = COMPARE("white","white ")

  1. 1

  2. 0

  3. 11

  4. 10

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

COMPARE returns 0 only when strings are identical - character-by-character comparison. 'white' and 'white ' differ by trailing spaces, so they don't match. 1 means strings differ, 10 or 11 are irrelevant.