Multiple choice technology mainframe

NAME1 = "JHON" NAME2 = " JHON " IF NAME1 == NAME2 THEN SAY " MATCHED " ELSE SAY " NOT MATCHED " Result: NOT MATCHED

  1. True

  2. False

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

REXX string comparison is exact and space-sensitive. NAME1 contains 'JHON' (6 characters) while NAME2 contains ' JHON ' with leading and trailing spaces (8 characters). Since the strings are not identical, the condition NAME1 == NAME2 is false, triggering the ELSE branch that outputs 'NOT MATCHED'.

AI explanation

The == strict comparison operator (as used in REXX/CLIST) compares strings exactly character-for-character, including leading and trailing spaces, without trimming or padding. Since NAME2 has extra spaces (" JHON ") that NAME1 ("JHON") doesn't, the two strings are not identical under strict comparison, so the result is "NOT MATCHED" — making the statement true.