nerdexam
SAS_Institute

A00-212 · Question #127

The following SAS program is submitted: %let a = cat; %macro animal(a = frog); %let a = bird; %mend; %animal(a = pig) %put a is &a; Which one of the following is written to the SAS log?

The correct answer is B. a is cat. See the full explanation below for the reasoning.

Question

The following SAS program is submitted:

%let a = cat; %macro animal(a = frog); %let a = bird; %mend; %animal(a = pig) %put a is &a; Which one of the following is written to the SAS log?

Options

  • Aa is &a
  • Ba is cat
  • Ca is pig
  • Da is bird

How the community answered

(42 responses)
  • A
    2% (1)
  • B
    81% (34)
  • C
    5% (2)
  • D
    12% (5)

Community Discussion

No community discussion yet for this question.

Full A00-212 Practice