Question 76
The SAS data sets WORK.EMPLOYEE and WORK.SALARY are listed below:
WORK.EMPLOYEE WORK.SALARY fname age fname salary Bruce 30 Bruce 25000 Dan 40 Bruce 35000 Dan 25000 The following SAS program is submitted: data work.empdata; merge work.employee work.salary; by fname; totsal + salary;
run;
How many variables are output to the WORK.EMPDATA data set?
Question 77
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?
Question 78
Given the SAS data set ONE:
ONE ObsDte
109JAN2005
212JAN2005
The following SAS program is submitted:
data two;
set one;
day = <insert expression here>;
format dte date9.;
run;
The data set TWO is created: TWO ObsDteDay 109JAN20051 12JAN20054
Which expression successfully completed the program and created the variable DAY?
Question 79
The following program is submitted:
proc contents data=_all_;
Which statement best describes the output from the submitted program?
Question 80
A raw data file is listed below:
--------10-------20-------30 John McCloskey 35 71 June Rosesette 10 43 Tineke Jones 9 37
The following SAS program is submitted using the raw data file as input:
data work.homework;
infile 'file-specification';
input name $ age height;
if age LE 10;
run;
How many observations will the WORK.HOMEWORK data set contain?
