Multiple choice technology web technology

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

  1. MEMORIAL DRIVE CAMBRIDGE

  2. CAMBRIDGE MEMORIAL DRIVE

  3. MEMORIAL CAMBRIDGE DRIVE

  4. DRIVE MEMORIAL CAMBRIDGE

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

PARSE UPPER ARG LASTN FIRSTN ADDRESS parses the arguments in reverse order. The input 'MEMORIAL DRIVE CAMBRIDGE' splits as: LASTN='MEMORIAL', FIRSTN='DRIVE', ADDRESS='CAMBRIDGE'. SAY FIRSTN LASTN ADDRESS outputs 'DRIVE MEMORIAL CAMBRIDGE'. The key insight is that the first argument goes to the last variable.