SASInstitute SAS advanced programming - A00-202 FREE EXAM DUMPS QUESTIONS & ANSWERS
The following SAS program is submitted:
proc datasets lib = testdata; modify one; label num = 'Number'; format num 4.;
quit;
Which one of the following SQL programs produces the same results as the above DATASETS procedure?
proc datasets lib = testdata; modify one; label num = 'Number'; format num 4.;
quit;
Which one of the following SQL programs produces the same results as the above DATASETS procedure?
Correct Answer: D
Vote an answer
Given the following SAS data set ONE:
ONE
CATEGORY AGE SALARY BONUS
M 28 200 .
M 25 100 10
F 18 100 50
F 25 200 10
The following SAS program is submitted:
proc sql;
create table two as
select category, salary + bonus as EARNINGS from one; quit;
Which one of the following represents the data values stored in the data set TWO?
ONE
CATEGORY AGE SALARY BONUS
M 28 200 .
M 25 100 10
F 18 100 50
F 25 200 10
The following SAS program is submitted:
proc sql;
create table two as
select category, salary + bonus as EARNINGS from one; quit;
Which one of the following represents the data values stored in the data set TWO?
Correct Answer: A
Vote an answer
The following SAS program is submitted: %let lib = %upcase(sasuser);
proc sql; select nvar from dictionary.tables where libname = "&lib";
quit;
Given that several SAS data sets exist in the SASUSER library, which one of the following is generated as output?
proc sql; select nvar from dictionary.tables where libname = "&lib";
quit;
Given that several SAS data sets exist in the SASUSER library, which one of the following is generated as output?
Correct Answer: C
Vote an answer
The SAS data set ONE consists of five million observations and has 25 variables.
Which one of the following SAS programs successfully creates three new variables TOTREV, TOTCOST, and PROFIT and requires the least CPU time to be processed?
Which one of the following SAS programs successfully creates three new variables TOTREV, TOTCOST, and PROFIT and requires the least CPU time to be processed?
Correct Answer: C
Vote an answer
Given the following SAS program:
proc sql;
select product, type, sum(sales) as revenue
from one
group by product, type;
quit;
Which one of the following clauses should be added to the program to sort the output by PRODUCT and decreasing REVENUE?
proc sql;
select product, type, sum(sales) as revenue
from one
group by product, type;
quit;
Which one of the following clauses should be added to the program to sort the output by PRODUCT and decreasing REVENUE?
Correct Answer: C
Vote an answer
Which one of the following statements about compressed SAS data sets is always true?
Correct Answer: B
Vote an answer
The following SAS program is submitted:
%let name = Patel's Restaurant;
Which one of the following statements avoids problems associated with the unbalanced quotation mark?
%let name = Patel's Restaurant;
Which one of the following statements avoids problems associated with the unbalanced quotation mark?
Correct Answer: A
Vote an answer
The SAS data set TEMP has the following distribution of values for variable A:
A Frequency
1 500,000
2 500,000
6 7,000,000
8 3,000
Which one of the following SAS programs requires the least CPU time to be processed?
A Frequency
1 500,000
2 500,000
6 7,000,000
8 3,000
Which one of the following SAS programs requires the least CPU time to be processed?
Correct Answer: C
Vote an answer