By admin | September 10, 2009

SAS Certified Base Programmer 123 Questions (36)

The following SAS program is submitted:

data allobs;
    set sasdata.origin (firstobs = 75 obs = 499);
run;

The SAS data set SASDATA.ORIGIN contains 1000 observations.
How many observations does the ALLOBS data set contain?

A. 424
B. 425
C. 499
D. 1000

By admin | September 10, 2009

SAS Certified Base Programmer 123 Questions (35)

The following SAS program is submitted:

data_null_;
    set old (keep = prod sales1 sales2);
    file 'file-specification';
    put sales1 sales2;
run;

Which one of the following default delimiters separates the fields in the raw data file created?

A. : (colon)
B. (space)
C. , (comma)
D. ;(semicolon)

By admin | September 10, 2009

SAS Certified Base Programmer 123 Questions (34)

The following SAS program is submitted:

data_null_;
    set old;
    put sales1 sales2;
run;

Where is the output written?

A. the SAS log
B. the raw data file that was opened last
C. the SAS output window or an output file
D. the data set mentioned in the DATA statement

By admin | September 9, 2009

SAS Certified Base Programmer 123 Questions (33)

The contents of the raw data file TEAM are listed below:

----|----10---|----20---|----30
Janice 10
Henri 11
Michael 11
Susan 12

The following SAS program is submitted:

data group;
    infile 'team';
    input name $15. age 2.;
    file 'file-specification';
    put name $15. =5 age 2.;
run;

Which one of the following describes the output created?

A. a raw data file only
B. a SAS data set named GROUP only
C. a SAS data set named GROUP and a raw data file
D. No output is generated as the program fails to execute due to errors.

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