nerdexam
SAS_Institute

A00-202 · Question #45

SAS A00-202 Exam 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…

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

Question

SAS A00-202 Exam 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
  • B6
  • C3
  • Dnull

How the community answered

(36 responses)
  • A
    17% (6)
  • B
    72% (26)
  • C
    8% (3)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full A00-202 Practice