nerdexam
SAS_Institute

A00-281 · Question #90

Given the following SAS program: Which statement correctly identifies invalid values in the variable TRT, if only the values 'A', B', 'C are valid?

The correct answer is A. if indexc(TRT, 'ABC') eq 0 then output. See the full explanation below for the reasoning.

Question

Given the following SAS program:

Which statement correctly identifies invalid values in the variable TRT, if only the values 'A', B', 'C are valid?

Exhibit

A00-281 question #90 exhibit

Options

  • Aif indexc(TRT, 'ABC') eq 0 then output;
  • Bif index(TRT, 'ABC') eq 0 then output;
  • Cif find(TRT, 'ABC') eq 0 then output;
  • Dif indexw(TRT, 'ABC') eq 0 then output;

How the community answered

(34 responses)
  • A
    74% (25)
  • B
    9% (3)
  • C
    15% (5)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full A00-281 Practice