EZ Study

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

SAS Programing Certification Exam
Practice Questions & Answer set-44

Practice Question 208

Review the code below
letters='abcdefghi'

string=substr(letters,5,3); the value for the character variable string is

a) fgh     b) efg     c) defgh     d) cdefg


Answer is 'efg'

Practice Question 209

IF and Where statements are used

a) in Data and Proc steps
b) to subset SAS datasets
c) with variables in existing SAS datasets or SAS dataviews
d) to check on the validity of a condition before the observation is brought into a temporary holding area.


IF and Where statements are used to subset SAS datasets based on a certain condition.... IF CANNOT be used in PROC Steps C and D are NOT Neccessarily TRUE

Practice Question 210

The Drop statement is used to -

a) drop the current observation from the master dataset
b) drop the current observation from the transaction dataset
Click to Get Those Highly Recommended SAS Programmers' Books
c) exclude certain variables from the SAS dataset being created
d) exclude the current observation from the SAS dataset being created

Drop statement is used to exclude certain variables from the SAS Dataset being created

Practice Question 211

Review the code below

data aaa;
infile cards missover;
input num1 num2 num3 num4;
cards;
11 12
31 32 33 34
;

What are the values of num1-num4 in the first observation of dataset aaa?

a) 11 12 31 32
b) 11 12 missing missing
c) missing missing missing missing
d) An error is issued by SAS and dataset is not created.


Due to MISSOVER option for the first observation num1=11 num2=12 num3=. num4=.

Practice Question 212

The option NODUPKEY is used in conjunction with PROC

a) sort     b) freq     c) print     d) transpose


The NODUPKEY is specified with PROC SORT

Practice Question 213

To return the current date as a SAS date value, use -

a) today()     b) date(0)     c) curdate()     d) datepart(0)



Answer is A use the today() or the date() functions

Practice Question 214

The OUTPUT statement is used to write the current observation to a SAS dataset?

a) immediately
b) at the end of the data step
c) as soon as the output vector is filled
d) right before processing the next observation


Immediately. OUTPUT Writes the current observation to a SAS data set

Related links:

Continue to SAS Practice Exam Question Answer Set-45   SAS interview Questions Answers
Back to SAS Practice Exam Question Answer Set-43   SAS Tutorial   Statistics Tutorial