nerdexam
SAS_Institute

A00-201 · Question #91

A raw data record is listed below: ----|----10----|----20----|----30 1999/10/25 The following SAS program is submitted: data projectduration; infile 'file-specification'; input date $ 1 - 10…

The correct answer is D. duration = today() - input(date,yymmdd10.). See the full explanation below for the reasoning.

Question

A raw data record is listed below: ----|----10----|----20----|----30 1999/10/25 The following SAS program is submitted: data projectduration; infile 'file-specification'; input date $ 1 - 10; <insert statement here> run; Which one of the following statements completes the program above and computes the duration of the project in days as of today's date?

Options

  • Aduration = today() - put(date,ddmmyy10.);
  • Bduration = today() - put(date,yymmdd10.);
  • Cduration = today() - input(date,ddmmyy10.);
  • Dduration = today() - input(date,yymmdd10.);

How the community answered

(61 responses)
  • A
    5% (3)
  • B
    8% (5)
  • C
    16% (10)
  • D
    70% (43)

Community Discussion

No community discussion yet for this question.

Full A00-201 Practice