nerdexam
SAS_Institute

A00-211 · Question #235

Given the following IF/THEN statement: If Age NE 16 and Age NE 15 then Group-1; Which assignment statement for variable Group is functionally equivalent to the original statement used in the above…

The correct answer is A. if (Age NE 16) or (Age NE 15) then Group=1. See the full explanation below for the reasoning.

Question

Given the following IF/THEN statement:

If Age NE 16 and Age NE 15 then Group-1; Which assignment statement for variable Group is functionally equivalent to the original statement used in the above data step?

Options

  • Aif (Age NE 16) or (Age NE 15) then Group=1;
  • Bwhere Age not between (15 and 16) then Group=1;
  • Cwhere Age not between 15 and 16 then Group=1;
  • Dif Age not in(15,16) then Group=1;

How the community answered

(41 responses)
  • A
    83% (34)
  • B
    2% (1)
  • C
    10% (4)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full A00-211 Practice