SAS Certified Base Programmer 123 Questions (81)
The following SAS program is submitted:
data work.month; date = put('13,mar2000'd,ddmmyy10.); run;
Which one of the following represents the type and length of the variable DATE in the output data set?
A. numeric, 8 bytes
B. numeric, 10 bytes
C. character, 8 bytes
D. character, 10 bytes
SAS Certified Base Programmer 123 Questions (80)
The following SAS program is submitted:
data work.month; date = input('13mar2000',date9.); run;
Which one of the following represents the type and length of the variable DATE in the output data set?
A. numeric, 8 bytes
B. numeric, 9 bytes
C. character, 8 bytes
D. character, 9 bytes
SAS Certified Base Programmer 123 Questions (79)
The following SAS program is submitted:
data work.products; Product_Number=5461; Item = '1001'; Item_Reference=Item||'/'||Product_Number; run;
Which one of the following is the value of the variable ITEM_REFERENCE in the output data set?
A. 1001/5461
B. 1001/ 5461
C. . (missing numeric value)
D. The value can not be determined as the program fails to execute due to errors.
SAS Certified Base Programmer 123 Questions (78)
The following SAS program is submitted:
data work.retail; cost = '20000'; total = .10 * cost; run;
Which one of the following is the value of the variable TOTAL in the output data set?
A. 2000
B. ‘2000’
C. . (missing numeric value)
D. ‘ ‘ (missing character value)
SAS Certified Base Programmer 123 Questions (77)
Which one of the following SAS statements correctly computes the average of four numerical values?
A. average = mean(num1 – num4);
B. average = mean(of num1 – num4);
C. average = mean(of num1 to num4);
D. average = mean(num1 num2 num3 num4);