Archive for September, 2009
SAS Certified Base Programmer 123 Questions (58)
The following SAS program is submitted: data work.one; x = 3; y = 2; z = x ** y; run; Which one of the following is the value of the variable Z in the output data set? A. 6 B. 9 C. . (missing numeric value) D. The program fails to execute due to errors.
SAS Certified Base Programmer 123 Questions (57)
The SAS data set named WORK.TEST is listed below: capacity airplanetype staff 150 Large 10 Which one of the following SAS programs created this data set? A. data work.test; capacity = 150; if 100 le capacity le 200 then airplanetype = ‘Large’ and staff = 10; else airplanetype = ‘Small’ and staff = 5; run; […]
SAS Certified Base Programmer 123 Questions (56)
The following SAS program is submitted: data work.flights; destination = ‘cph’; select(destination); when(‘LHR’) city = ‘London’; when(‘CPH’) city = ‘Copenhgen’; otherwise city = ‘Other’; end; run; Which one of the following is the value of the CITY variable? A. Other B. Copenh C. Copenhagen D. ‘ ‘ (missing character value)
SAS Certified Base Programmer 123 Questions (55)
The following SAS program is submitted: data work.flights; destination = ‘CPH’; select(destination); when(‘LHR’) city = ‘London’; when(‘CPH’) city = ‘Copenhgen’; otherwise; end; run; Which one of the following is the value of the CITY variable? A. London B. Copenh C. Copenhagen D. ‘ ‘ (missing character value)
SAS Certified Base Programmer 123 Questions (54)
The following SAS program is submitted: data work.new; length word $7; amount = 4; if amount = 4 then word = ‘FOUR’; else if amount = 7 then word = ‘SEVEN’; else word = ‘NONE!!!’; amount = 7; run; Which one of the following represents the values of the AMOUNT and WORD variables? A. amount […]