EZ Study

Actuarial Biology Chemistry Economics Calculators Confucius Engineer
Physics
C.S.

SAS Programing Certification Exam
Practice Questions & Answer set-25

Practice Question 123

The value 110700 is stored in a numeric variable.
Which one of the following SAS formats is used to display the value as $110,700.00
Click to Get Those Highly Recommended SAS Programmers' Books
in a report?
A. comma8.2     B. comma11.2     C. dollar8.2     D. dollar11.2


ANSWER IS D.

Practice Question 124

The SAS data set SASUSER.HOUSES contains a variable PRICE which has been assigned a permanent label of "Asking Price".
Which one of the following SAS programs temporarily replaces the label "Asking Price" with the label "Sale Price" in the output?
A. proc print data = sasuser.houses;
label price = "Sale Price";
run;
B. proc print data = sasuser.houses label;
label price "Sale Price";
run;
C. proc print data = sasuser.houses label;
label price = "Sale Price";
run;
D. proc print data = sasuser.houses label = "Sale Price";
run;


Answer is C

Practice Question 125

The SAS data set BANKS is listed below:
BANKS
name rate
FirstCapital 0.0718
DirectBank 0.0721
VirtualDirect 0.0728
The following SAS program is submitted:
data newbank;
do year = 1 to 3;
set banks;

capital + 5000;     end;     run;
Which one of the following represents how many observations and variables will exist in the SAS data set NEWBANK?
A. 0 observations and 0 variables
B. 1 observations and 4 variables
C. 3 observations and 3 variables
D. 9 observations and 2 variables


Answer is B

Practice Question 126

The following SAS program is submitted:
data work.clients;
calls = 6;
do while (calls le 6);
calls + 1;
end;
run;
Which one of the following is the value of the variable CALLS in the output data set?
A. 4
B. 5
C. 6
D. 7


Answer is D

Practice Question 127

The following SAS program is submitted:
data work.pieces;
do while (n lt 6);
n + 1;
end;
run;
Which one of the following is the value of the variable N in the output data set?
A. 4
B. 5
C. 6
D. 7


Answer is C

Related links:

Continue to SAS Practice Exam Question Answer Set-26   SAS interview Questions Answers
Back to SAS Practice Exam Question Answer Set-24   SAS Tutorial   Statistics Tutorial