EZ Study

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

SAS Programing Certification Exam
Practice Questions & Answer set-43

Practice Question 203

The following SAS DATA step is submitted:

libname temp 'SAS-data-library';
data temp.report;     set sasuser.houses;

newvar = price * 1.04;     run;

Which one of the following statements is true regarding the program above?

A. The program reads from a temporary data set and write to a temporary dataset.
B. The program reads from a temporary data set and write to a permanent data set.
C. The program reads from a permanent data set and write to a temporary data set.
D. The program reads from a permanent data set and write to a permanent data set.


Answer: D

Practice Question 204

A raw data record is listed below:
----|----10---|----20---|----30
Printing 750

The following SAS program is submitted:

data bonus;     infile 'file-specification';
Click to Get Those Highly Recommended SAS Programmers' Books
input dept $ 1 - 11 number 13 - 15;     run;

Which one of the following SAS statements completes the program and results in a value of 'Printing750' for the DEPARTMENT variable?

A. department = trim(dept) || number;
B. department = dept || input(number,3.);
C. department = trim(dept) || put(number,3.);
D. department = input(dept,11.) || input(number,3.);

Answer: C

Practice Question 205

Which one of the following statements is true regarding the name of a SAS array?

A. It is saved with the data set.
B. It can be used in procedures.
C. It exists only for the duration of the DATA step.
D. It can be the same as the name of a variable in the data set.



Answer: C

Practice Question 206

Which one of the following is true when SAS encounters a data error in a DATA step?

A. The DATA step stops executing at the point of the error, and no SAS data set is created.
B. A note is written to the SAS log explaining the error, and the DATA step continues to execute.
C. A note appears in the SAS log that the incorrect data record was saved to a separate SAS file for further examination.
D. The DATA step stops executing at the point of the error, and the resulting DATA set contains observations up to that point.


Answer: B

Practice Question 207

The following SAS program is submitted:

proc means data = sasuser.houses std mean max;
var sqfeet; run;

Which one of the following is needed to display the standard deviation with only two decimal places?

A. Add the option MAXDEC = 2 to the MEANS procedure statement.
B. Add the statement MAXDEC = 7.2; in the MEANS procedure step.
C. Add the statement FORMAT STD 7.2; in the MEANS procedure step.
D. Add the option FORMAT = 7.2 option to the MEANS procedure statement.



Answer: A

Related links:

Continue to SAS Practice Exam Question Answer Set-44   SAS interview Questions Answers
Back to SAS Practice Exam Question Answer Set-42   SAS Tutorial   Statistics Tutorial