Question 96
Given the SAS data set WORK.THREE:
The following SAS program is submitted:
What is the result?
Question 97
A raw data file is listed below:
--------10-------20-------30
squash 1.10
apples 2.25
juice 1.69
The following SAS program is submitted using the raw data file above:
data groceries;
infile 'file-specification';
input item $ cost;
run;
Which one of the following completes the program and produces a grand total for all COST values?
Question 98
This question will ask you to provide a line of missing code.
Given the following data set WORK.SALES:
The following program is submitted:
Which statement should be inserted to produce the following output?
Question 99
Given the SAS data set PRICES:
PRICES
Prodid priceproducttypesalesreturns K1255.10NETWORK152 B132S 2.34HARDWARE30010 R18KY2 1.29SOFTWARE255 3KL8BY 6.37HARDWARE12515
DY65DW 5.60HARDWARE455
DGTY23 4.55HARDWARE672
The following SAS program is submitted:
data hware inter cheap;
set prices(keep = productype price);
if producttype = 'HARDWARE' then output hware; else if producttype = 'NETWORK'
then output
inter; if price le 5.00;
run;
if producttype = 'HARDWARE' then output hware; else if producttype = 'NETWORK' then
output
inter; if price le 5.00;
run;
How many observations does the HWARE data set contain?
Question 100
The following SAS program is submitted:
Which statement is true about the output data set?
