SAS Certified Base Programmer 123 Questions (86)
The following SAS program is submitted:
data work.clients; calls = 6; do while (calls le 6); calls + 1; end; run;
Which one of the following is the value of the variable CALLS in the output data set?
A. 4
B. 5
C. 6
D. 7
SAS Certified Base Programmer 123 Questions (85)
The following SAS program is submitted:
data work.pieces; do while (n lt 6); n + 1; end; run;
Which one of the following is the value of the variable N in the output data set?
A. 4
B. 5
C. 6
D. 7
SAS Certified Base Programmer 123 Questions (84)
The following SAS program is submitted:
data work.sales; do year = 1 to 5; do month = 1 to 12; x + 1; end; end; run;
Which one of the following represents how many observations are written to the WORK.SALES data set?
A. 0
B. 1
C. 5
D. 60
SAS Certified Base Programmer 123 Questions (83)
A raw data record is listed below:
----|----10---|----20---|----30 1999/10/25
The following SAS program is submitted:
data projectduration; infile' file-specification'; input date $ 1 - 10; <insert statement here> run;
Which one of the following statements completes the program above and computes the duration of the project in days as of today’s date?
A. duration = today( ) – put(date,ddmmyy 10.);
B. duration = today( ) – put(date,yymmdd 10.);
C. duration = today( ) – input(date,ddmmyy 10.);
D. duration = today( ) – input(date,yymmdd 10.);
SAS Certified Base Programmer 123 Questions (82)
A raw data record is listed below:
----|----10---|----20---|----30 Printing 750
The following SAS program is submitted:
data bonus; infile'file-specification'; input dept $ 1 - 11 number 13 - 15; <insert code here> run;
Which one of the following SAS statements completes the program and results in a value of ‘Printing750’ for the DEPARTMENT variable?
A. department = trim(dept) || number;
B. department = dept || input(number,3.);
C. department = trim(dept) || put(number,3.);
D. department = input(dept,11.) || input(number,3.);