SAS Institute A00-211 Exam Practice Questions (P. 3)
- Full Access (270 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #11
The following SAS program is submitted:
proc sort data = work.employee;
by descending fname;
proc sort data = work.salary;
by descending fname;
data work.empdata;
merge work.employee
work.salary;
by fname;
run;
Why does the program rail to execute?
proc sort data = work.employee;
by descending fname;
proc sort data = work.salary;
by descending fname;
data work.empdata;
merge work.employee
work.salary;
by fname;
run;
Why does the program rail to execute?
- AThe SORT procedures contain invalid syntax.
- BThe merged data sets are not permanent SAS data sets.
- CThe RUN statement was omitted alter each or the SORT procedures.
- DThe data sets were not merged in the order by which they were sorted.
Correct Answer:
D
D
send
light_mode
delete
Question #12
The following SAS program is submittad:
data work.sales;
do year = 1 to 5;
do month=1 to 12;
x+1;
output
end;
end;
run;
How many observations are written the WORK SALES data set?
data work.sales;
do year = 1 to 5;
do month=1 to 12;
x+1;
output
end;
end;
run;
How many observations are written the WORK SALES data set?
send
light_mode
delete
Question #13
Given the following raw data record:
----I----10---I----20---I----30
son Travis,
The following output is desired:
Obs relation firstname -
1 son Travis
Which SAS program correctly reads in the raw data?
----I----10---I----20---I----30
son Travis,
The following output is desired:
Obs relation firstname -
1 son Travis
Which SAS program correctly reads in the raw data?
- Adata family ( dIm = ‘,’); infile ‘tile specification’; input relation $ firstname $; run;
- Boptions dIm = ‘,’; data family; infile ‘file specification’; input relation $ firstname $; run;
- Cdata family; infile ‘file specification’ dIm = ‘,’; input relation $ firstname $; run;
- Ddata family; infile ‘file specification’; input relation $ firstname $ / dim = ‘,’; run;
Correct Answer:
C
C
send
light_mode
delete
Question #14
Given the SAS data set AGES:
AGES -
AGE -
---------
The variable AGE contains character values. The following SAS program is submitted: data subset; set ages; where age> 12; run;
How many observations are written out to the data set SUBSET?
AGES -
AGE -
---------
The variable AGE contains character values. The following SAS program is submitted: data subset; set ages; where age> 12; run;
How many observations are written out to the data set SUBSET?
send
light_mode
delete
Question #15
Given the SAS data set PRICES:
PRICES -
prodid price
K12S 5.10 producttype -
NETWORK sales -
15 returns
B132S 2.34 HARDWARE 300 10
R18KY21.29 SOFTWARE 25 5
3KL8BY 6.37 HARDWARE 125 15
DY65DW 5.60 HARDWARE 45 5
DGTY23 4.55 HARDWARE 67 2
The following SAS program is submitted:
data hware inter soft;
set prices (keep = producttype price);
if price le 5.00;
if producttype = HARDWARE then output HWARE;
else if producttype = NETWORK then output INTER;
else if producttype = SOFTWARE then output SOFT;
run;
How many observations does the HWARE data set contain?
PRICES -
prodid price
K12S 5.10 producttype -
NETWORK sales -
15 returns
B132S 2.34 HARDWARE 300 10
R18KY21.29 SOFTWARE 25 5
3KL8BY 6.37 HARDWARE 125 15
DY65DW 5.60 HARDWARE 45 5
DGTY23 4.55 HARDWARE 67 2
The following SAS program is submitted:
data hware inter soft;
set prices (keep = producttype price);
if price le 5.00;
if producttype = HARDWARE then output HWARE;
else if producttype = NETWORK then output INTER;
else if producttype = SOFTWARE then output SOFT;
run;
How many observations does the HWARE data set contain?
send
light_mode
delete
All Pages