nerdexam
SAS_Institute

A00-281 · Question #41

Given the following data at WORK DEMO: Which SAS program prints only the first 5 males in this order from the data set?

The correct answer is B. proc print data=WORK.DEMO(obs=5). See the full explanation below for the reasoning.

Question

Given the following data at WORK DEMO:

Which SAS program prints only the first 5 males in this order from the data set?

Exhibit

A00-281 question #41 exhibit

Options

  • Aproc sort data=WORK.DEMO out=out;
  • Bproc print data=WORK.DEMO(obs=5);
  • Cproc print data=WORK.DEMO(where=(sex='M'));
  • Dproc sort data=WORK.DEMO out=out;

How the community answered

(55 responses)
  • A
    7% (4)
  • B
    71% (39)
  • C
    18% (10)
  • D
    4% (2)

Community Discussion

No community discussion yet for this question.

Full A00-281 Practice