nerdexam
SAS_Institute

A00-211 · Question #44

Consider the data step: Which of the following assignment statements for variable group are functionally equivalent to the original statement used in the above data step?

The correct answer is A. if Age not in(15,16) then Group=1; else Group=2. See the full explanation below for the reasoning.

Question

Consider the data step:

Which of the following assignment statements for variable group are functionally equivalent to the original statement used in the above data step?

Options

  • Aif Age not in(15,16) then Group=1; else Group=2;
  • Bif (Age NE 16) or (Age NE 15) then Group=1; else Group=2;
  • Cwhere Age not between 15 and 16 then Group=1; else Group=2;
  • Dboth A or C will work.

How the community answered

(23 responses)
  • A
    83% (19)
  • C
    4% (1)
  • D
    13% (3)

Community Discussion

No community discussion yet for this question.

Full A00-211 Practice