nerdexam
SAS_Institute

A00-212 · Question #113

The following SAS program is submitted: %macro test(var); %let jobs = BLACKSMITH WORDSMITH SWORDSMITH; %let type = %index(&jobs,&var); %mend; %test(SMITH) Which one of the following is the resulting…

The correct answer is C. 6. See the full explanation below for the reasoning.

Question

The following SAS program is submitted:

%macro test(var); %let jobs = BLACKSMITH WORDSMITH SWORDSMITH; %let type = %index(&jobs,&var); %mend; %test(SMITH) Which one of the following is the resulting value of the macro variable TYPE?

Options

  • A0
  • B3
  • C6
  • Dnull

How the community answered

(23 responses)
  • A
    13% (3)
  • B
    9% (2)
  • C
    74% (17)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full A00-212 Practice