SAS_Institute
A00-201 · Question #103
A00-201 Question #103: Real Exam Question with Answer & Explanation
The correct answer is D. Obs newdate qdate ddate 1 04/15/2000 2 7. See the full explanation below for the reasoning.
Question
The following SAS program is submitted:
libname temp 'SAS-data-library';
data work.new;
set temp.jobs;
format newdate mmddyy10.;
qdate = qtr(newdate);
ddate = weekday(newdate);
run;
proc print data = work.new;
run;
The variable NEWDATE contains the SAS date value for April 15, 2000. What output is produced if April 15, 2000 falls on a Saturday?
Obs newdate qdate ddate
A.1 APR152000 2 6
Obs newdate qdate ddate
B.1 04/15/2000 2 6
Obs newdate qdate ddate
C.1 APR152000 2 7
Obs newdate qdate ddate
D.1 04/15/2000 2 7
Options
- AObs newdate qdate ddate 1 APR152000 2 6
- BObs newdate qdate ddate 1 04/15/2000 2 6
- CObs newdate qdate ddate 1 APR152000 2 7
- DObs newdate qdate ddate 1 04/15/2000 2 7
Community Discussion
No community discussion yet for this question.