Multiple choice technology mainframe

" What will be value in W1 and W2 after the execution of command PARSE VALUE ‘To be, or Not to be’ WITH w1 ',' w2 "

  1. W1 = To be W2 = or Not to be

  2. W1 = To W2 = be, or Not to be

  3. W1 = TO BE W2 = OR NOT TO BE

  4. none of the above

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

The PARSE VALUE instruction splits 'To be, or Not to be' at the first comma (,) delimiter. W1 gets 'To be' (everything before the comma) and W2 gets ' or Not to be' (everything after the comma, including the leading space). PARSE is case-preserving, so case doesn't change.