given answer C is correct, .. sort is descending on a character variable, so it goes backwards in the alphabet from May to JUNe to JULy and ascending on day (so not D).
data temps;
infile datalines;
input day month $ temp;
datalines;
1 May 75
15 May 70
15 June 80
3 June 76
2 July 85
14 July 89
;
proc sort data=work.temps;
by descending month day;
run;
proc print data=work.temps;
run;
month is a string variable, so july < june <may. the answer is A.
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
mhminkov
3 years, 5 months agoKleinstone
3 years, 10 months ago