Archive for August, 2009
SAS Certified Base Programmer 123 Questions (8)
The contents of the raw data file TYPECOLOR are listed below: —-|—-10—|—-20—|—-30 daisyyellow The following SAS program is submitted: data flowers; infile’typecolor’; input type $ 1-5 +1 color $; run; Which one of the following represents the values of the variables TYPE and COLOR? A. type color daisy yellow B. type color daisy ellow C. […]
SAS Certified Base Programmer 123 Questions (7)
The contents of the raw data file PRODUCT are listed below: —-|—-10—|—-20—|—-30 24613 $25.31 The following SAS program is submitted: data inventory; infile ‘product’; input idnum 5. @10 price; run; Which one of the following is the value of the PRICE variable? A. 25.31 B. $25.31 C. . (missing numeric value) D. No value is […]
SAS Certified Base Programmer 123 Questions (6)
The following SAS program is submitted: proc print data = sasuser.houses; run; <insert OPTIONS statement here> proc means data = sasuser.shoes; run; Which one of the following OPTIONS statements resets the page number to 1 for the second report? A. option pageno = 1; B. option pagenum = 1; C. options reset pageno = 1; […]
SAS Certified Base Programmer 123 Questions (5)
The following SAS program is submitted: data work.sets; do until (prod gt 6); prod + 1; end; run; Which one of the following is the value of the variable PROD in the output data set? A. 5 B. 6 A. 7 B. 8
SAS Certified Base Programmer 123 Questions (4)
Which one of the following is true of the SUM statement in a SAS DATA step program? A. It is only valid in conjunction with a SUM function. B. It is not valid with the SET, MERGE and UPDATE statements. C. It adds the value of an expression to an accumulator variable and ignores missing […]