Archive for August, 2009

By admin | August 6, 2009

SAS Certified Base Programmer 50 Questions (23)

The following program is submitted: data work.test; set work.staff (keep=salary1 salary2 salary3); <insert ARRAY statement here> run; Which ARRAY statement completes the program and creates new variables? a. array salary{3}; b. array new_salary{3}; c. array salary{3} salary1-salary3; d. array new_salary{3} salary1-salary3;

By admin | August 6, 2009

SAS Certified Base Programmer 50 Questions (22)

The following SAS program is submitted: data work.inventory; products=7; do until (products gt 6); products+1; end; run; Which one of the following is the value of the variable products in the output data set? a. 5 b. 6 c. 7 d. 8

By admin | August 6, 2009

SAS Certified Base Programmer 50 Questions (21)

The following SAS program is submitted: data work.AreaCodes; Phonenumber=3125551212; Code='(‘!!substr(Phonenumber,1,3)!!’)’; run; Which one of the following is the value of the variable Code in the output data set? a. (  3) b. (312) c. 3 d. 312

By admin | August 5, 2009

SAS Certified Base Programmer 50 Questions (20)

The following program is submitted: data test; average=mean(6,4,.,2); run; What is the value of average? a. 0 b. 3 c. 4 d. . (missing numeric value)

By admin | August 5, 2009

SAS Certified Base Programmer 50 Questions (19)

A raw data file is listed below. 1—+—-10—+—-20—+— 1901 2 1905 1 1910 6 1925 1 1941 1 The following SAS program is submitted and references the raw data file above: data money; infile ‘file-specification’; input year quantity; total=total+quantity; run; What is the value of total when the data step finishes executing a. 0 b. […]