By admin | September 9, 2009

SAS Certified Base Programmer 123 Questions (32)

The contents of the SAS data set named PERM.STUDENTS are listed below:

name    age
Alfred  14
Alice   13
Barbara 13
Carol   14

The following SAS program is submitted using the PERM.STUDENTS data set as input:

Libnameperm 'SAS-date-library';
data students;
    set perm.students;
    file 'file-specification';
    put name $15. @5 age 2.;
run

Which one of the following represents the values written to the output raw data file?

A.

----|----10---|----20---|----30
Alfred        14
Alice         13
Barbara       13
Carol         14

B.

----|----10---|----20---|----30
Alfr14
Alic13
Barb13a
Caro14

C.

----|----10---|----20---|----30
Alfr14ed
Alic13e
Barb13ara
Caro14l

D.

----|----10---|----20---|----30
Alfred 14
Alice 13
Barbara 13
Carol 14

2 comments | Add One

  1. admin - 09/9/2009 at 1:21 pm

    B

  2. Sachin - 01/22/2012 at 6:03 am

    Please explain answer B about 3rd observation ? why there is a after 13…

Leave a Comment

Leave a Reply

Your email address will not be published.