Multiple choice technology mainframe

INPUT_STRING = "HOW ARE YOU" PARSE VAR INPUT_STRING ONE TWO THREE

  1. ONE = " " ; TWO = "HOW" ; THREE = "ARE YOU"

  2. ONE = "HOW" ; TWO = "ARE"; THREE = "YOU"

  3. ONE = "HOW ARE YOU" ; TWO = NULL ; THREE = NULL

  4. ONE = " " ; TWO = "HOW" ; THREE = "ARE"

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

The REXX PARSE statement with a single variable template splits the input string by whitespace into sequential variables. PARSE VAR INPUT_STRING ONE TWO THREE parses 'HOW ARE YOU' by assigning the first word 'HOW' to ONE, second word 'ARE' to TWO, and third word 'YOU' to THREE.