최신SASInstitute SAS advanced programming - A00-202무료샘플문제
문제1
The following are values of the variable STYLE from the SAS data set SASUSER.HOUSES:
SASUSERS.HOUSES OBS STYLE
1 RANCH 2 SPLIT 3 CONDO 4 TWOSTORY 5 RANCH 6 SPLIT 7 SPLIT
The following SAS program is submitted:
proc sql noprint; select distinct style into :styles separated by ' ' from sasuser.houses order by style;
quit;
Which one of the following is the value of the resulting macro variable?
The following are values of the variable STYLE from the SAS data set SASUSER.HOUSES:
SASUSERS.HOUSES OBS STYLE
1 RANCH 2 SPLIT 3 CONDO 4 TWOSTORY 5 RANCH 6 SPLIT 7 SPLIT
The following SAS program is submitted:
proc sql noprint; select distinct style into :styles separated by ' ' from sasuser.houses order by style;
quit;
Which one of the following is the value of the resulting macro variable?
정답: A
문제2
Which one of the following statements about compressed SAS data sets is always true?
Which one of the following statements about compressed SAS data sets is always true?
정답: C
문제3
Given the following SAS data set ONE:
ONE LEVEL AGE
1 10 2 20 3 20 2 10 1 10 2 30 3 10 2 20 3 30 1 10
The following SAS program is submitted:
proc sql;
select level, max(age) as MAX
from one group by level
having max(age) > (select avg(age) from one);
quit;
Which one of the following reports is generated?
Given the following SAS data set ONE:
ONE LEVEL AGE
1 10 2 20 3 20 2 10 1 10 2 30 3 10 2 20 3 30 1 10
The following SAS program is submitted:
proc sql;
select level, max(age) as MAX
from one group by level
having max(age) > (select avg(age) from one);
quit;
Which one of the following reports is generated?
정답: B
문제4
Which one of the following options is available for SAS macro debugging?
Which one of the following options is available for SAS macro debugging?
정답: C
문제5
Given the following SAS data set ONE:
ONE
NUM VAR
1 A
2 B
3 C
Which one of the following SQL programs deletes the SAS data set ONE?
Given the following SAS data set ONE:
ONE
NUM VAR
1 A
2 B
3 C
Which one of the following SQL programs deletes the SAS data set ONE?
정답: A
문제6
Given the following SAS data set ONE:
ONE CATEGORY AGE SALARY BONUS
M 28 200 20 M 25 100 10 M 28 300 10 M 33 300 30 F 18 100 50 F 25 200 10
F 35 400 50
The following SAS program is submitted:
proc sql;
select distinct category,
sum(sum(salary,bonus)) as EARNINGS
from one
where age < 30
group by category
having calculated EARNINGS < 500;
quit;
Which one of the following reports will be generated?
Given the following SAS data set ONE:
ONE CATEGORY AGE SALARY BONUS
M 28 200 20 M 25 100 10 M 28 300 10 M 33 300 30 F 18 100 50 F 25 200 10
F 35 400 50
The following SAS program is submitted:
proc sql;
select distinct category,
sum(sum(salary,bonus)) as EARNINGS
from one
where age < 30
group by category
having calculated EARNINGS < 500;
quit;
Which one of the following reports will be generated?
정답: C
문제7
Given the following SAS data set SASUSER.HIGHWAY:
SASUSER.HIGHWAY
STEERING SEATBELT SPEED STATUS COUNT
absent no 0-29 serious 31 absent no 0-29 not 1419 absent no 30-49 serious 191 absent no 30-49 not 2004 absent no 50+ serious 216
The following SAS program is submitted:
%macro highway;
proc sql noprint;
select count(distinct status)
into :numgrp
from sasuser.highway;
%let numgrp = &numgrp;
select distinct status
into :group1-:group&numgrp
from sasuser.highway;
quit;
%do i = 1 %to &numgrp;
proc print data = sasuser.highway;
where status = "&&group&i" ;
run;
%end; %mend;
%highway How many reports are produced by the above program?
Given the following SAS data set SASUSER.HIGHWAY:
SASUSER.HIGHWAY
STEERING SEATBELT SPEED STATUS COUNT
absent no 0-29 serious 31 absent no 0-29 not 1419 absent no 30-49 serious 191 absent no 30-49 not 2004 absent no 50+ serious 216
The following SAS program is submitted:
%macro highway;
proc sql noprint;
select count(distinct status)
into :numgrp
from sasuser.highway;
%let numgrp = &numgrp;
select distinct status
into :group1-:group&numgrp
from sasuser.highway;
quit;
%do i = 1 %to &numgrp;
proc print data = sasuser.highway;
where status = "&&group&i" ;
run;
%end; %mend;
%highway How many reports are produced by the above program?
정답: E
문제8
Which of the following statement(s) in the DATASETS procedure alters the name of a SAS data set stored in a SAS data library?
Which of the following statement(s) in the DATASETS procedure alters the name of a SAS data set stored in a SAS data library?
정답: B