Multiple choice technology mainframe

/REXX/ Do forever Say ‘Enter the code :’ Pull code If code = ‘BYE’ then Leave; end Exit Based on the above REXX, what is true?

  1. The above exec will prompt the user for a code until the user enters the code ‘BYE’

  2. The above exec will prompt the user for a code until the user enters the code ‘EXIT’.

  3. Gives Error while Executing

  4. The above exec will prompt the user for a code until the user enters the code ‘END’.

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

The REXX script uses a Do forever loop to repeatedly prompt the user and read input using Pull code. The Pull instruction converts input to uppercase. If the input matches 'BYE', the Leave statement terminates the loop, and the program exits. Other options specify incorrect termination conditions.