Multiple choice technology mainframe

%MYPRINT MEMORIAL DRIVE CAMBRIDGE ------------------------------------ /REXX/ PARSE UPPER ARG LASTN FIRSTN SAY FIRSTN -------------------------------------- RESULT?

  1. MEMORIAL

  2. DRIVE CAMBRIDGE

  3. DRIVE

  4. CAMBRIDGE

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

PARSE UPPER ARG LASTN FIRSTN assigns the first two words from 'MEMORIAL DRIVE CAMBRIDGE' in reverse: LASTN='MEMORIAL', FIRSTN='DRIVE'. The SAY FIRSTN statement outputs only the value of FIRSTN, which is 'DRIVE'. Any remaining input ('CAMBRIDGE') is unassigned and ignored.