Multiple choice technology programming languages

%let a=begin; %let b=%nrstr(&a); %put UPCASE produces: %upcase(&b); %put QUPCASE produces: %qupcase(&b); The output of the two put statement is :

  1. BEGIN and &A

  2. begin and &A

  3. begin and begin

  4. begin and BEGIN

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

%NRSTR prevents macro variable resolution at compilation, so &b stores the literal text "&a" without triggering &a. %UPCASE converts &b to "&A" (no resolution occurred). %QUPCASE also produces "&A" because it processes the already-unresolved literal. The output shows "&A" for both because the ampersand reference was never resolved. Option A is correct: "BEGIN and &A" (though BEGIN should be lowercase as per initial value).