Click on the Comments to view the Answers

Wednesday, January 27, 2010

Q13

The SAS data set WORK.AWARDS is listed below:

fname points
Amy 2
Amy 1
Gerard 3
Wang 3
Wang 1
Wang 2

The following SAS program is submitted:

proc sort data = work.awards;
by descending fname points;
run;

Which one of the following represents how the observations are sorted?

A. Wang 3
Gerard 3
Wang 2
Amy 2
Wang 1
Amy 1

B. Wang 3
Wang 2
Wang 1
Gerard 3
Amy 2
Amy 1

C. Wang 3
Wang 1
Wang 2
Gerard 3
Amy 2
Amy 1

D. Wang 1
Wang 2
Wang 3
Gerard 3
Amy 1
Amy 2

7 comments:

SASGuru said...

Answer: D
The sort order is descending fname and ascending points.
data awards;
input fname $ points;
cards;
Amy 2
Amy 1
Gerard 3
Wang 3
Wang 1
Wang 2
;
run;

proc sort data = awards;
by descending fname points;
run;

Rujuta........ said...

D. Wang 1
Wang 2
Wang 3
Gerard 3
Amy 1
Amy 2

smitapal said...

ans is D bcz decending f.name within that ascending points.

siva said...

Ans D

Ryan Lo said...

Answer is D.

kinnari said...

D

Gaurav Verma said...

D

Post a Comment



Technology Top Blogs On our way to 1,000,000 rss feeds - millionrss.com Hihera.com Blog Directory - OnToplist.com blogarama - the blog directory Blog Directory
Disclaimer

SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.

Other brand and product names are trademarks of their respective companies.

This blog is not responsible for any kind of copyright violation. This blog just collects the links hosted or posted by other servers/people/search engines.The creator of this page or the ISP(s) hosting any content on this site take no responsibility for the way you use the information provided on this site.If anybody has any copyright claim on it and doesn’t wish the information provided to be shown on our site, please do respond to this email. We shall remove them off immediately. Any inconvenience is regretted. Please do mention your exact grievance/problems with respect to certain third party links. We assure you that appropriate action will be taken off. Thank you