Which one of the following is the value of the variable WORD in the output data set?

The following SAS program is submitted:
data work.test;
Title = ‘A Tale of Two Cities, Charles J. Dickens’;
Word = scan(title,3,’ ,’);
run;
Which one of the following is the value of the variable WORD in the output data set?
A. T
B. of
C. Dickens
D. ‘ ‘ (missing character value)

Download Printable PDF. VALID exam to help you PASS.

2 thoughts on “Which one of the following is the value of the variable WORD in the output data set?

  1. Answer is B. Be very careful about the space right before the comma! It tells you the blank is also a delimiter. If there is no space right before the comma, then the answer should be D.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.