SAS Certified Base Programmer 50 Questions (16)
Which of the following statements creates a numeric variable named IDnumber with a value of 4198?
a. IDnumber=4198;
b. IDnumber=’4198′;
c. length IDnumber=8;
c. length IDnumber $ 8;
SAS Certified Base Programmer 50 Questions (15)
The following SAS program is submitted:
data work.building; code='DAL523'; code='SANFRAN604'; code='HOUS731'; run;
Which one of the following is the length of the code variable?
a. 6
b. 7
c. 10
d. 20
SAS Certified Base Programmer 50 Questions (14)
Which one of the following SAS programs creates a variable named City with a value of Chicago?
a.
data work.airports;
AirportCode='ord';
if AirportCode='ORD' City='Chicago';
run;
b.
data work.airports;
AirportCode='ORD';
if AirportCode='ORD' City='Chicago';
run;
c.
data work.airports;
AirportCode='ORD';
if AirportCode='ORD' then City='Chicago';
run;
d.
data work.airports;
AirportCode='ORD';
if AirportCode='ORD';
then City='Chicago';
run;
SAS Certified Base Programmer 50 Questions (13)
The following SAS program is submitted:
data names; title='EDU'; if title='EDU' then Division='Education'; else if title='HR' then Division='Human Resources'; else Division='Unknown'; run;
Which one of the following represents the value of the variable Division in the output data set?
a. Educatio
b. Education
c. Human Re
d. Human Resources
SAS Certified Base Programmer 50 Questions (12)
The following SAS program is submitted:
proc sort data=work.test; by fname descending salary; run;
Which one of the following represents how the observations are sorted?
a. The data set Work.Test is sorted in ascending order by both Fname and Salary values.
b. The data set Work.Test is sorted in descending order by both Fname and Salary values.
c. The data set Work.Test is sorted in descending order by Fname and ascending order by Salary values.
d. The data set Work.Test is sorted in ascending order by Fname and descending order by Salary values.