nerdexam
SAS_Institute

A00-280 · Question #45

Given the following data set WORK.DM: subject ge sex race cbp 001 24 M WH YES 002 53 F BL YES 003 36 F AS NO 004 57 M BL YES 005 25 F WH YES 006 80 F MU NA Note: cbp = Child Bearing Potential The…

The correct answer is D. 004 and 006. See the full explanation below for the reasoning.

Question

Given the following data set WORK.DM: subject ge sex race cbp 001 24 M WH YES 002 53 F BL YES 003 36 F AS NO 004 57 M BL YES 005 25 F WH YES 006 80 F MU NA Note: cbp = Child Bearing Potential The following SAS program is submitted: data null; set WORK.DM ; if sex = "M" and cbp eq "NA" then put "CHECK: " subject= sex= cbp= ; else if sex = "F" and cbp eq "NA" then put "CHECK: " subject= sex= cbp= ; run ; Which subjects will appear in the LOG file?

Options

  • A001 and 004
  • B003 and 006
  • C003 and 004
  • D004 and 006

How the community answered

(44 responses)
  • A
    7% (3)
  • B
    16% (7)
  • C
    5% (2)
  • D
    73% (32)

Community Discussion

No community discussion yet for this question.

Full A00-280 Practice